aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
author--global <strap012@umn.edu>2020-10-24 15:09:35 -0500
committer--global <strap012@umn.edu>2020-10-24 15:09:35 -0500
commit65b0073a95ddb0da9bddd67d5646f29eab6df1d4 (patch)
treeb052a79050c73d0d6009840218a338f83fce6099
parentLord please help (diff)
downloadcsci4061-65b0073a95ddb0da9bddd67d5646f29eab6df1d4.tar
csci4061-65b0073a95ddb0da9bddd67d5646f29eab6df1d4.tar.gz
csci4061-65b0073a95ddb0da9bddd67d5646f29eab6df1d4.tar.bz2
csci4061-65b0073a95ddb0da9bddd67d5646f29eab6df1d4.tar.lz
csci4061-65b0073a95ddb0da9bddd67d5646f29eab6df1d4.tar.xz
csci4061-65b0073a95ddb0da9bddd67d5646f29eab6df1d4.tar.zst
csci4061-65b0073a95ddb0da9bddd67d5646f29eab6df1d4.zip
Comments
-rw-r--r--P2/lib/utils.c3
1 files changed, 2 insertions, 1 deletions
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;
}