svn commit: trunk/busybox/modutils

landley at busybox.net landley at busybox.net
Thu Aug 3 20:40:00 UTC 2006


Author: landley
Date: 2006-08-03 13:39:59 -0700 (Thu, 03 Aug 2006)
New Revision: 15773

Log:
Try to make a "type-punned pointer" warning go away for somebody on the
buildroot list.


Modified:
   trunk/busybox/modutils/lsmod.c


Changeset:
Modified: trunk/busybox/modutils/lsmod.c
===================================================================
--- trunk/busybox/modutils/lsmod.c	2006-08-03 20:22:37 UTC (rev 15772)
+++ trunk/busybox/modutils/lsmod.c	2006-08-03 20:39:59 UTC (rev 15773)
@@ -93,8 +93,7 @@
 	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 @@
 			/* 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;




More information about the busybox-cvs mailing list