summaryrefslogtreecommitdiff
path: root/modutils
diff options
context:
space:
mode:
Diffstat (limited to 'modutils')
-rw-r--r--modutils/lsmod.c2
-rw-r--r--modutils/rmmod.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/modutils/lsmod.c b/modutils/lsmod.c
index 9b72275..d3b1bb7 100644
--- a/modutils/lsmod.c
+++ b/modutils/lsmod.c
@@ -36,5 +36,5 @@ extern int lsmod_main(int argc, char **argv)
char *cmd[] = { "cat", "/proc/modules", "\0" };
#endif
- exit(cat_main(3, cmd));
+ return(cat_main(3, cmd));
}
diff --git a/modutils/rmmod.c b/modutils/rmmod.c
index 5ef4a60..a73d789 100644
--- a/modutils/rmmod.c
+++ b/modutils/rmmod.c
@@ -75,5 +75,5 @@ extern int rmmod_main(int argc, char **argv)
}
argv++;
}
- exit(TRUE);
+ return(TRUE);
}