mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
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:
committed by
Eric Sandeen
parent
59040620b4
commit
969f36df3e
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user