From db1114e4826097feb8907bdec013c61ebd04c716 Mon Sep 17 00:00:00 2001 From: landley Date: Thu, 3 Aug 2006 20:39:59 +0000 Subject: Try to make a "type-punned pointer" warning go away for somebody on the buildroot list. git-svn-id: svn://busybox.net/trunk/busybox@15773 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- modutils/lsmod.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'modutils/lsmod.c') 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; -- cgit v1.2.3-55-g6feb