diff options
author | Matt Strapp <strap012@umn.edu> | 2020-11-03 07:53:23 -0600 |
---|---|---|
committer | Matt Strapp <strap012@umn.edu> | 2020-11-03 07:53:23 -0600 |
commit | b435d6bf78aaf65be52cbc7fb52cea40cf84e50a (patch) | |
tree | 40466766f2e1fac193e3540ed225b82b6fbfd8eb | |
parent | Comments and other assorted messing (diff) | |
download | csci4061-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
-rw-r--r-- | P2/lib/utils.c | 4 |
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; |