aboutsummaryrefslogtreecommitdiffstats
path: root/P1/src
diff options
context:
space:
mode:
authorMatt Strapp <strap012@umn.edu>2020-10-06 08:19:52 -0500
committerMatt Strapp <strap012@umn.edu>2020-10-06 08:19:52 -0500
commit7f7cefeff2f3fa4a36213e4f90a4aab7d9353b32 (patch)
treee3a4d4e4980566624accc847558c907ed9098c1b /P1/src
parentGet rid of ancient comments (diff)
downloadcsci4061-7f7cefeff2f3fa4a36213e4f90a4aab7d9353b32.tar
csci4061-7f7cefeff2f3fa4a36213e4f90a4aab7d9353b32.tar.gz
csci4061-7f7cefeff2f3fa4a36213e4f90a4aab7d9353b32.tar.bz2
csci4061-7f7cefeff2f3fa4a36213e4f90a4aab7d9353b32.tar.lz
csci4061-7f7cefeff2f3fa4a36213e4f90a4aab7d9353b32.tar.xz
csci4061-7f7cefeff2f3fa4a36213e4f90a4aab7d9353b32.tar.zst
csci4061-7f7cefeff2f3fa4a36213e4f90a4aab7d9353b32.zip
Change error
Diffstat (limited to '')
-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 36e9045..cb171bb 100644
--- a/P1/src/mapreduce.c
+++ b/P1/src/mapreduce.c
@@ -13,7 +13,7 @@ int main(int argc, char *argv[]) {
int nReducers = strtol(argv[2], NULL, 10);
if (nMappers < nReducers) {
printf("Number of mappers must be greater than or equal to the number of reducers.\n");
- exit(2);
+ exit(-1);
}
char *inputFile = argv[3];