From e6d0a88d284bcc89709bd9fea9469e11067b26fa Mon Sep 17 00:00:00 2001 From: --global Date: Sat, 24 Oct 2020 15:04:56 -0500 Subject: Lord please help --- P2/lib/utils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'P2') diff --git a/P2/lib/utils.c b/P2/lib/utils.c index 98239d5..7d85c84 100644 --- a/P2/lib/utils.c +++ b/P2/lib/utils.c @@ -14,7 +14,8 @@ char *getChunkData(int mapperID) { } msgrcv(mid, (void *) &message, MSGSIZE, mapperID, 0); if (strcmp("END", message -> msgText)) { - msgsnd(mid, (void *) "ACK", 3, 0); + struct msgBuffer ACK = {mapperID, "ACK"}; + msgsnd(mid, (void *) &ACK, MSGSIZE, 0); } char* returnValue = message -> msgText; return returnValue; -- cgit v1.2.3