aboutsummaryrefslogtreecommitdiffstats
path: root/P1
diff options
context:
space:
mode:
authorAndrea Smith <smit9523@umn.edu>2020-10-04 10:58:58 -0500
committerAndrea Smith <smit9523@umn.edu>2020-10-04 10:58:58 -0500
commit05ec7a0a3d4f41dcf3f149537eb372dee12ba3b4 (patch)
tree3dd9644a6b1267c36903f81b538eb349d285550d /P1
parentFix compiler warnings (diff)
downloadcsci4061-05ec7a0a3d4f41dcf3f149537eb372dee12ba3b4.tar
csci4061-05ec7a0a3d4f41dcf3f149537eb372dee12ba3b4.tar.gz
csci4061-05ec7a0a3d4f41dcf3f149537eb372dee12ba3b4.tar.bz2
csci4061-05ec7a0a3d4f41dcf3f149537eb372dee12ba3b4.tar.lz
csci4061-05ec7a0a3d4f41dcf3f149537eb372dee12ba3b4.tar.xz
csci4061-05ec7a0a3d4f41dcf3f149537eb372dee12ba3b4.tar.zst
csci4061-05ec7a0a3d4f41dcf3f149537eb372dee12ba3b4.zip
Dereference on mapreduce.c line 36
Diffstat (limited to 'P1')
-rw-r--r--P1/src/mapreduce.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/P1/src/mapreduce.c b/P1/src/mapreduce.c
index 9fad791..807c1af 100644
--- a/P1/src/mapreduce.c
+++ b/P1/src/mapreduce.c
@@ -33,7 +33,7 @@ int main(int argc, char *argv[]) {
//TODO: exec here
char num[10];
sprintf(num, "%d", i);
- execl("./mapper", "./mapper", num, NULL);
+ execl("./mapper", "./mapper", &num, NULL);
}
}