diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-04-05 03:14:39 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2001-04-05 03:14:39 +0000 |
commit | 01d0083a639d6b91298c62b9e67b803fe9b9a36d (patch) | |
tree | 87f705b9e4e4e48700ac61e9538c637ae2b395a7 /modutils/rmmod.c | |
parent | ea8519ec8a9e6807e16ca3a138d22201d35b273b (diff) | |
download | busybox-w32-01d0083a639d6b91298c62b9e67b803fe9b9a36d.tar.gz busybox-w32-01d0083a639d6b91298c62b9e67b803fe9b9a36d.tar.bz2 busybox-w32-01d0083a639d6b91298c62b9e67b803fe9b9a36d.zip |
A number of cleanups. Now compiles with libc5, glibc, and uClibc. Fix a few
shadowed variables. Move (almost) all syscalls to libbb/syscalls.c, so I can
handle them sanely and all at once.
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@2250 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'modutils/rmmod.c')
-rw-r--r-- | modutils/rmmod.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/modutils/rmmod.c b/modutils/rmmod.c index 36857e02c..7596d0232 100644 --- a/modutils/rmmod.c +++ b/modutils/rmmod.c | |||
@@ -26,16 +26,11 @@ | |||
26 | #include <unistd.h> | 26 | #include <unistd.h> |
27 | #include <stdlib.h> | 27 | #include <stdlib.h> |
28 | #include <getopt.h> | 28 | #include <getopt.h> |
29 | #include <sys/syscall.h> | ||
30 | #include <linux/unistd.h> | ||
31 | #include "busybox.h" | 29 | #include "busybox.h" |
32 | #define __LIBRARY__ | ||
33 | 30 | ||
31 | extern int delete_module(const char * name); | ||
34 | 32 | ||
35 | 33 | ||
36 | /* And the system call of the day is... */ | ||
37 | _syscall1(int, delete_module, const char *, name) | ||
38 | |||
39 | extern int rmmod_main(int argc, char **argv) | 34 | extern int rmmod_main(int argc, char **argv) |
40 | { | 35 | { |
41 | int n, ret = EXIT_SUCCESS; | 36 | int n, ret = EXIT_SUCCESS; |