From 65b0073a95ddb0da9bddd67d5646f29eab6df1d4 Mon Sep 17 00:00:00 2001 From: --global Date: Sat, 24 Oct 2020 15:09:35 -0500 Subject: Comments --- P2/lib/utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- cgit v1.2.3