aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--P2/lib/utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/P2/lib/utils.c b/P2/lib/utils.c
index 7d85c84..a0f53bf 100644
--- a/P2/lib/utils.c
+++ b/P2/lib/utils.c
@@ -1,5 +1,6 @@
#include "utils.h"
+//Receive from send and return the chonk
char *getChunkData(int mapperID) {
//Message
struct msgBuffer* message;
@@ -17,7 +18,7 @@ char *getChunkData(int mapperID) {
struct msgBuffer ACK = {mapperID, "ACK"};
msgsnd(mid, (void *) &ACK, MSGSIZE, 0);
}
- char* returnValue = message -> msgText;
+ char *returnValue = message -> msgText;
return returnValue;
}