fsx: Replace use of bcmp() with memcmp()

The bcmp() function comes from BSD 4.3, and was deprecated in
POSIX.1-2001.  It was removed entirely in POSIX.1-2008.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
This commit is contained in:
Theodore Ts'o
2009-05-13 15:52:23 -05:00
committed by Eric Sandeen
parent 59040620b4
commit 969f36df3e
+1 -1
View File
@@ -350,7 +350,7 @@ check_buffers(unsigned offset, unsigned size)
unsigned op = 0;
unsigned bad = 0;
if (bcmp(good_buf + offset, temp_buf, size) != 0) {
if (memcmp(good_buf + offset, temp_buf, size) != 0) {
prt("READ BAD DATA: offset = 0x%x, size = 0x%x, fname = %s\n",
offset, size, fname);
prt("OFFSET\tGOOD\tBAD\tRANGE\n");