aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2020-10-24 16:35:07 -0500
committerMatt Strapp <strap012@umn.edu>2020-10-24 16:35:07 -0500
commit2aca5ec021e0e8bc39da1dddb0b117726d867a39 (patch)
treed6a70298a5e3715e493cfaa455783513170c20ba
parentSpacing because intellisense (diff)
downloadcsci4061-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
Diffstat (limited to '')
-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