diff options
Diffstat (limited to '')
| -rw-r--r-- | P2/lib/utils.c | 4 | 
1 files changed, 1 insertions, 3 deletions
diff --git a/P2/lib/utils.c b/P2/lib/utils.c index 21753a1..7bdf941 100644 --- a/P2/lib/utils.c +++ b/P2/lib/utils.c @@ -24,7 +24,7 @@ char *getChunkData(int mapperID) {  	msgrcv(mid, &message, MSGSIZE, mapperID, 0);  	if (strncmp("END", message.msgText, 3) == 0)  		return NULL; -	char* value = malloc(1024); // chunkSize or MSGSIZE? +	char* value = malloc(1024);  	strcpy(value, message.msgText);  	return value;  } @@ -85,9 +85,7 @@ int getInterData(char *Qkey, int reducerID) {  }  void shuffle(int nMappers, int nReducers) { -	//TODO: Error checking!!!!!!!!!!!!!  	struct msgBuffer message = makeMessage(); -	//Once again, MAKE SURE THIS WORKS PROPERLY!  	int id = openQueue();  	for (int i = 1; i <= nMappers; i++) {  		char newpath[100];  | 
