aboutsummaryrefslogtreecommitdiffstats
path: root/P2
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2020-11-03 07:53:23 -0600
committerMatt Strapp <strap012@umn.edu>2020-11-03 07:53:23 -0600
commitb435d6bf78aaf65be52cbc7fb52cea40cf84e50a (patch)
tree40466766f2e1fac193e3540ed225b82b6fbfd8eb /P2
parentComments and other assorted messing (diff)
downloadcsci4061-b435d6bf78aaf65be52cbc7fb52cea40cf84e50a.tar
csci4061-b435d6bf78aaf65be52cbc7fb52cea40cf84e50a.tar.gz
csci4061-b435d6bf78aaf65be52cbc7fb52cea40cf84e50a.tar.bz2
csci4061-b435d6bf78aaf65be52cbc7fb52cea40cf84e50a.tar.lz
csci4061-b435d6bf78aaf65be52cbc7fb52cea40cf84e50a.tar.xz
csci4061-b435d6bf78aaf65be52cbc7fb52cea40cf84e50a.tar.zst
csci4061-b435d6bf78aaf65be52cbc7fb52cea40cf84e50a.zip
Fix some more things, maybe
Diffstat (limited to 'P2')
-rw-r--r--P2/lib/utils.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/P2/lib/utils.c b/P2/lib/utils.c
index da8e856..63485a7 100644
--- a/P2/lib/utils.c
+++ b/P2/lib/utils.c
@@ -78,8 +78,8 @@ int getInterData(char *Qkey, int reducerID) {
// How do we traverse the directory if we're not given it as an arg?
int id = openQueue("reduce");
msgrcv(id, &message, chunkSize, reducerID, 0);
- Qkey = message.msgText;
- return strncmp("END", message.msgText, 3);
+ *Qkey = *message.msgText;
+ return abs(strncmp("END", message.msgText, 3));
// if (strncmp("END", message.msgText, 3))
// {
// return 0;