diff options
Diffstat (limited to 'modutils')
| -rw-r--r-- | modutils/lsmod.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/modutils/lsmod.c b/modutils/lsmod.c index 18ee83929..55d336bf8 100644 --- a/modutils/lsmod.c +++ b/modutils/lsmod.c | |||
| @@ -93,8 +93,7 @@ int lsmod_main(int argc, char **argv) | |||
| 93 | size_t bufsize, depsize, nmod, count, i, j; | 93 | size_t bufsize, depsize, nmod, count, i, j; |
| 94 | 94 | ||
| 95 | module_names = xmalloc(bufsize = 256); | 95 | module_names = xmalloc(bufsize = 256); |
| 96 | if (my_query_module(NULL, QM_MODULES, (void **)&module_names, &bufsize, | 96 | if (my_query_module(NULL, QM_MODULES, &module_names, &bufsize, &nmod)) { |
| 97 | &nmod)) { | ||
| 98 | bb_perror_msg_and_die("QM_MODULES"); | 97 | bb_perror_msg_and_die("QM_MODULES"); |
| 99 | } | 98 | } |
| 100 | 99 | ||
| @@ -111,7 +110,7 @@ int lsmod_main(int argc, char **argv) | |||
| 111 | /* else choke */ | 110 | /* else choke */ |
| 112 | bb_perror_msg_and_die("module %s: QM_INFO", mn); | 111 | bb_perror_msg_and_die("module %s: QM_INFO", mn); |
| 113 | } | 112 | } |
| 114 | if (my_query_module(mn, QM_REFS, (void **)&deps, &depsize, &count)) { | 113 | if (my_query_module(mn, QM_REFS, &deps, &depsize, &count)) { |
| 115 | if (errno == ENOENT) { | 114 | if (errno == ENOENT) { |
| 116 | /* The module was removed out from underneath us. */ | 115 | /* The module was removed out from underneath us. */ |
| 117 | continue; | 116 | continue; |
