summaryrefslogtreecommitdiff
path: root/libbb/dump.c
diff options
context:
space:
mode:
authorMike Frysinger2006-04-16 05:51:47 +0000
committerMike Frysinger2006-04-16 05:51:47 +0000
commit78bd504947637b39c5f80134c553602b7dccf281 (patch)
tree034601946e09175841eabef9de14b9ae07986865 /libbb/dump.c
parentb0a2d6c19d7d4b42a2b29500d1a7a94e2115b5ea (diff)
downloadbusybox-78bd504947637b39c5f80134c553602b7dccf281.zip
busybox-78bd504947637b39c5f80134c553602b7dccf281.tar.gz
use memcmp() not bcmp()
Diffstat (limited to 'libbb/dump.c')
-rw-r--r--libbb/dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/dump.c b/libbb/dump.c
index c09abf8..9337ca6 100644
--- a/libbb/dump.c
+++ b/libbb/dump.c
@@ -380,7 +380,7 @@ static unsigned char *get(void)
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 @@ static unsigned char *get(void)
}
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;
}