aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2006-08-03 20:39:59 +0000
committerRob Landley <rob@landley.net>2006-08-03 20:39:59 +0000
commit6ced427a6debb71967a8b9cebc12e31c08de0f6a (patch)
tree4d3525a9dd4019ed1415da1f93700beb45590b91
parent403777ffae15cf4eb94c319fb8144d66f5aed0eb (diff)
downloadbusybox-6ced427a6debb71967a8b9cebc12e31c08de0f6a.tar.gz
Try to make a "type-punned pointer" warning go away for somebody on the
buildroot list.
-rw-r--r--modutils/lsmod.c5
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)
size_t bufsize, depsize, nmod, count, i, j;
module_names = xmalloc(bufsize = 256);
- if (my_query_module(NULL, QM_MODULES, (void **)&module_names, &bufsize,
- &nmod)) {
+ if (my_query_module(NULL, QM_MODULES, &module_names, &bufsize, &nmod)) {
bb_perror_msg_and_die("QM_MODULES");
}
@@ -111,7 +110,7 @@ int lsmod_main(int argc, char **argv)
/* else choke */
bb_perror_msg_and_die("module %s: QM_INFO", mn);
}
- if (my_query_module(mn, QM_REFS, (void **)&deps, &depsize, &count)) {
+ if (my_query_module(mn, QM_REFS, &deps, &depsize, &count)) {
if (errno == ENOENT) {
/* The module was removed out from underneath us. */
continue;