svn commit: trunk/busybox/libbb

vapier at busybox.net vapier at busybox.net
Sun Apr 16 05:51:49 UTC 2006


Author: vapier
Date: 2006-04-15 22:51:47 -0700 (Sat, 15 Apr 2006)
New Revision: 14883

Log:
use memcmp() not bcmp()

Modified:
   trunk/busybox/libbb/dump.c


Changeset:
Modified: trunk/busybox/libbb/dump.c
===================================================================
--- trunk/busybox/libbb/dump.c	2006-04-15 02:27:44 UTC (rev 14882)
+++ trunk/busybox/libbb/dump.c	2006-04-16 05:51:47 UTC (rev 14883)
@@ -380,7 +380,7 @@
 			if (need == bb_dump_blocksize) {
 				return ((unsigned char *) NULL);
 			}
-			if (bb_dump_vflag != ALL && !bcmp(curp, savp, nread)) {
+			if (bb_dump_vflag != ALL && !memcmp(curp, savp, nread)) {
 				if (bb_dump_vflag != DUP) {
 					printf("*\n");
 				}
@@ -405,7 +405,7 @@
 		}
 		if (!(need -= n)) {
 			if (bb_dump_vflag == ALL || bb_dump_vflag == FIRST
-				|| bcmp(curp, savp, bb_dump_blocksize)) {
+				|| memcmp(curp, savp, bb_dump_blocksize)) {
 				if (bb_dump_vflag == DUP || bb_dump_vflag == FIRST) {
 					bb_dump_vflag = WAIT;
 				}




More information about the busybox-cvs mailing list