From b435d6bf78aaf65be52cbc7fb52cea40cf84e50a Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Tue, 3 Nov 2020 07:53:23 -0600 Subject: Fix some more things, maybe --- P2/lib/utils.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'P2') 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; -- cgit v1.2.3