[xfs-masters] [PATCH 4/6] fsx: Replace use of bcmp() with memcmp()
Theodore Ts'o
tytso at mit.edu
Tue May 12 11:14:23 CDT 2009
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 at mit.edu>
---
ltp/fsx.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/ltp/fsx.c b/ltp/fsx.c
index 2574165..d1d1ed8 100644
--- a/ltp/fsx.c
+++ b/ltp/fsx.c
@@ -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");
--
1.6.3.rc4.1.g3e14.dirty
More information about the xfs-masters
mailing list