aboutsummaryrefslogtreecommitdiff
path: root/findutils
diff options
context:
space:
mode:
Diffstat (limited to 'findutils')
-rw-r--r--findutils/find.c2
-rw-r--r--findutils/grep.c2
-rw-r--r--findutils/which.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/findutils/find.c b/findutils/find.c
index 53b85e6b3..329d15193 100644
--- a/findutils/find.c
+++ b/findutils/find.c
@@ -116,5 +116,5 @@ int find_main(int argc, char **argv)
exit(FALSE);
}
- exit(TRUE);
+ return(TRUE);
}
diff --git a/findutils/grep.c b/findutils/grep.c
index b91fe7c2c..0e495ff87 100644
--- a/findutils/grep.c
+++ b/findutils/grep.c
@@ -163,7 +163,7 @@ extern int grep_main(int argc, char **argv)
fclose(fp);
}
}
- exit(match);
+ return(match);
}
diff --git a/findutils/which.c b/findutils/which.c
index 7a11bf787..8d4422a78 100644
--- a/findutils/which.c
+++ b/findutils/which.c
@@ -88,7 +88,7 @@ extern int which_main(int argc, char **argv)
exit (FALSE);
}
}
- exit(TRUE);
+ return(TRUE);
}
/*