diff options
author | Matt Strapp <strap012@umn.edu> | 2020-10-24 16:35:07 -0500 |
---|---|---|
committer | Matt Strapp <strap012@umn.edu> | 2020-10-24 16:35:07 -0500 |
commit | 2aca5ec021e0e8bc39da1dddb0b117726d867a39 (patch) | |
tree | d6a70298a5e3715e493cfaa455783513170c20ba | |
parent | Spacing because intellisense (diff) | |
download | csci4061-2aca5ec021e0e8bc39da1dddb0b117726d867a39.tar csci4061-2aca5ec021e0e8bc39da1dddb0b117726d867a39.tar.gz csci4061-2aca5ec021e0e8bc39da1dddb0b117726d867a39.tar.bz2 csci4061-2aca5ec021e0e8bc39da1dddb0b117726d867a39.tar.lz csci4061-2aca5ec021e0e8bc39da1dddb0b117726d867a39.tar.xz csci4061-2aca5ec021e0e8bc39da1dddb0b117726d867a39.tar.zst csci4061-2aca5ec021e0e8bc39da1dddb0b117726d867a39.zip |
Get rid of variable
-rw-r--r-- | P2/lib/utils.c | 3 |
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 |