aboutsummaryrefslogtreecommitdiff
path: root/modutils/rmmod.c
diff options
context:
space:
mode:
Diffstat (limited to 'modutils/rmmod.c')
-rw-r--r--modutils/rmmod.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/modutils/rmmod.c b/modutils/rmmod.c
index 7bc929de2..44c606e47 100644
--- a/modutils/rmmod.c
+++ b/modutils/rmmod.c
@@ -60,7 +60,7 @@ extern int rmmod_main(int argc, char **argv)
60 int n, ret = EXIT_SUCCESS; 60 int n, ret = EXIT_SUCCESS;
61 unsigned int flags = O_NONBLOCK|O_EXCL; 61 unsigned int flags = O_NONBLOCK|O_EXCL;
62#ifdef CONFIG_FEATURE_QUERY_MODULE_INTERFACE 62#ifdef CONFIG_FEATURE_QUERY_MODULE_INTERFACE
63 /* bb_common_bufsiz1 hold the module names which we ignore 63 /* bb_common_bufsiz1 hold the module names which we ignore
64 but must get */ 64 but must get */
65 size_t bufsize = sizeof(bb_common_bufsiz1); 65 size_t bufsize = sizeof(bb_common_bufsiz1);
66#endif 66#endif
@@ -76,7 +76,7 @@ extern int rmmod_main(int argc, char **argv)
76 /* until the number of modules does not change */ 76 /* until the number of modules does not change */
77 size_t nmod = 0; /* number of modules */ 77 size_t nmod = 0; /* number of modules */
78 size_t pnmod = -1; /* previous number of modules */ 78 size_t pnmod = -1; /* previous number of modules */
79 79
80 while (nmod != pnmod) { 80 while (nmod != pnmod) {
81 if (syscall(__NR_delete_module, NULL, flags) != 0) { 81 if (syscall(__NR_delete_module, NULL, flags) != 0) {
82 if (errno==EFAULT) 82 if (errno==EFAULT)
@@ -101,7 +101,7 @@ extern int rmmod_main(int argc, char **argv)
101#ifdef CONFIG_FEATURE_2_6_MODULES 101#ifdef CONFIG_FEATURE_2_6_MODULES
102 const char *afterslash; 102 const char *afterslash;
103 char *module_name; 103 char *module_name;
104 104
105 afterslash = strrchr(argv[n], '/'); 105 afterslash = strrchr(argv[n], '/');
106 if (!afterslash) 106 if (!afterslash)
107 afterslash = argv[n]; 107 afterslash = argv[n];