aboutsummaryrefslogtreecommitdiff
path: root/modutils/rmmod.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-04-05 03:14:39 +0000
committerEric Andersen <andersen@codepoet.org>2001-04-05 03:14:39 +0000
commite76c3b08e105147e3cef7e8d38d65da2fac6b2e1 (patch)
tree87f705b9e4e4e48700ac61e9538c637ae2b395a7 /modutils/rmmod.c
parent3c0364f3911ec9f43e1c8c96ec2c8e30b1b52c47 (diff)
downloadbusybox-e76c3b08e105147e3cef7e8d38d65da2fac6b2e1.tar.gz
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
Diffstat (limited to 'modutils/rmmod.c')
-rw-r--r--modutils/rmmod.c7
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 @@
#include <unistd.h>
#include <stdlib.h>
#include <getopt.h>
-#include <sys/syscall.h>
-#include <linux/unistd.h>
#include "busybox.h"
-#define __LIBRARY__
+extern int delete_module(const char * name);
-/* And the system call of the day is... */
-_syscall1(int, delete_module, const char *, name)
-
extern int rmmod_main(int argc, char **argv)
{
int n, ret = EXIT_SUCCESS;