From 2aca5ec021e0e8bc39da1dddb0b117726d867a39 Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Sat, 24 Oct 2020 16:35:07 -0500 Subject: Get rid of variable --- P2/lib/utils.c | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3