diff options
author | Tim Riker | 2002-12-14 01:58:59 +0000 |
---|---|---|
committer | Tim Riker | 2002-12-14 01:58:59 +0000 |
commit | cf93274663877cb4d722a23d8c418470eb90332a (patch) | |
tree | a056983d1162502b58e2aca4c2ebf3c9c7b9c6be /modutils/lsmod.c | |
parent | 6fe1960ff5e4c7c993a8bc3add5361ee55323afe (diff) | |
download | busybox-cf93274663877cb4d722a23d8c418470eb90332a.zip busybox-cf93274663877cb4d722a23d8c418470eb90332a.tar.gz |
rmmod -a removed modules recursively
Diffstat (limited to 'modutils/lsmod.c')
-rw-r--r-- | modutils/lsmod.c | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/modutils/lsmod.c b/modutils/lsmod.c index d51da2d..0d5ac75 100644 --- a/modutils/lsmod.c +++ b/modutils/lsmod.c @@ -98,23 +98,6 @@ static const int NEW_MOD_VISITED = 8; static const int NEW_MOD_USED_ONCE = 16; static const int NEW_MOD_INITIALIZING = 64; -static int my_query_module(const char *name, int which, void **buf, - size_t *bufsize, size_t *ret) -{ - int my_ret; - - my_ret = query_module(name, which, *buf, *bufsize, ret); - - if (my_ret == -1 && errno == ENOSPC) { - *buf = xrealloc(*buf, *ret); - *bufsize = *ret; - - my_ret = query_module(name, which, *buf, *bufsize, ret); - } - - return my_ret; -} - extern int lsmod_main(int argc, char **argv) { struct module_info info; |