svn commit: trunk/busybox: console-tools modutils

vda at busybox.net vda at busybox.net
Thu Nov 6 02:32:31 UTC 2008


Author: vda
Date: 2008-11-05 18:32:31 -0800 (Wed, 05 Nov 2008)
New Revision: 23942

Log:
*: remove superfluous casts. no code changes



Modified:
   trunk/busybox/console-tools/loadfont.c
   trunk/busybox/modutils/depmod.c
   trunk/busybox/modutils/modutils.c


Changeset:
Modified: trunk/busybox/console-tools/loadfont.c
===================================================================
--- trunk/busybox/console-tools/loadfont.c	2008-11-06 00:49:59 UTC (rev 23941)
+++ trunk/busybox/console-tools/loadfont.c	2008-11-06 02:32:31 UTC (rev 23942)
@@ -197,7 +197,7 @@
 	 * just read the entire file.
 	 */
 	len = 32*1024; // can't be larger
-	psfhdr = (struct psf_header *) xmalloc_read(STDIN_FILENO, &len);
+	psfhdr = xmalloc_read(STDIN_FILENO, &len);
 	// xmalloc_open_zipped_read_close(filename, &len);
 	if (!psfhdr)
 		bb_perror_msg_and_die("error reading input font");
@@ -282,7 +282,7 @@
 	}
 	// load font
 	len = 32*1024; // can't be larger
-	psfhdr = (struct psf_header *) xmalloc_open_zipped_read_close(*argv, &len);
+	psfhdr = xmalloc_open_zipped_read_close(*argv, &len);
 	if (!psfhdr)
 		bb_simple_perror_msg_and_die(*argv);
 	do_load(fd, psfhdr, len);

Modified: trunk/busybox/modutils/depmod.c
===================================================================
--- trunk/busybox/modutils/depmod.c	2008-11-06 00:49:59 UTC (rev 23941)
+++ trunk/busybox/modutils/depmod.c	2008-11-06 02:32:31 UTC (rev 23942)
@@ -50,7 +50,7 @@
 	if (strrstr(fname, ".ko") == NULL)
 		return TRUE;
 
-	image = (char *) xmalloc_open_zipped_read_close(fname, &len);
+	image = xmalloc_open_zipped_read_close(fname, &len);
 	info = xzalloc(sizeof(module_info));
 
 	info->next = *first;

Modified: trunk/busybox/modutils/modutils.c
===================================================================
--- trunk/busybox/modutils/modutils.c	2008-11-06 00:49:59 UTC (rev 23941)
+++ trunk/busybox/modutils/modutils.c	2008-11-06 02:32:31 UTC (rev 23942)
@@ -123,7 +123,7 @@
 #endif
 
 	/* Use the 2.6 way */
-	image = (char *) xmalloc_open_zipped_read_close(filename, &len);
+	image = xmalloc_open_zipped_read_close(filename, &len);
 	if (image) {
 		if (init_module(image, len, options) != 0)
 			rc = errno;




More information about the busybox-cvs mailing list