aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--P2/lib/utils.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/P2/lib/utils.c b/P2/lib/utils.c
index a0f53bf..dba63b5 100644
--- a/P2/lib/utils.c
+++ b/P2/lib/utils.c
@@ -18,8 +18,7 @@ char *getChunkData(int mapperID) {
struct msgBuffer ACK = {mapperID, "ACK"};
msgsnd(mid, (void *) &ACK, MSGSIZE, 0);
}
- char *returnValue = message -> msgText;
- return returnValue;
+ return message -> msgText;
}
// sends chunks of size 1024 to the mappers in RR fashion