diff options
author | Matt Strapp <strap012@umn.edu> | 2020-10-06 20:18:26 -0500 |
---|---|---|
committer | Matt Strapp <strap012@umn.edu> | 2020-10-06 20:18:26 -0500 |
commit | b5babfdef50084b4552ce7f7806dd58ebd1ea1db (patch) | |
tree | bc7f869823a06f3ba9c17e9a85ecac9e98ebcbf5 | |
parent | Add more error handling (diff) | |
download | csci4061-b5babfdef50084b4552ce7f7806dd58ebd1ea1db.tar csci4061-b5babfdef50084b4552ce7f7806dd58ebd1ea1db.tar.gz csci4061-b5babfdef50084b4552ce7f7806dd58ebd1ea1db.tar.bz2 csci4061-b5babfdef50084b4552ce7f7806dd58ebd1ea1db.tar.lz csci4061-b5babfdef50084b4552ce7f7806dd58ebd1ea1db.tar.xz csci4061-b5babfdef50084b4552ce7f7806dd58ebd1ea1db.tar.zst csci4061-b5babfdef50084b4552ce7f7806dd58ebd1ea1db.zip |
get rid of &
-rw-r--r-- | P1/src/mapreduce.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |