From b5babfdef50084b4552ce7f7806dd58ebd1ea1db Mon Sep 17 00:00:00 2001 From: Matt Strapp Date: Tue, 6 Oct 2020 20:18:26 -0500 Subject: get rid of & --- P1/src/mapreduce.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'P1/src') diff --git a/P1/src/mapreduce.c b/P1/src/mapreduce.c index 8243e17..d4e5f4e 100644 --- a/P1/src/mapreduce.c +++ b/P1/src/mapreduce.c @@ -39,7 +39,7 @@ int main(int argc, char *argv[]) { if (mapperPid == 0) { char numMap[10]; sprintf(numMap, "%d", i); - execl("./mapper", "./mapper", &numMap, NULL); + execl("./mapper", "./mapper", numMap, NULL); printf("Mapper execution failed! Make sure \"mapper\" exists in the directory.\n"); return 2; } else if (mapperPid == -1) { @@ -76,7 +76,7 @@ int main(int argc, char *argv[]) { if (reducerPid == 0) { char numRed[10]; sprintf(numRed, "%d", i); - execl("./reducer", "./reducer", &numRed, NULL); + execl("./reducer", "./reducer", numRed, NULL); printf("Reducer execution failed! Make sure \"reducer\" exists in the directory.\n"); return 2; } else if (reducerPid == -1) { -- cgit v1.2.3