From: Theodore Ts'o Date: Wed, 13 May 2009 20:52:23 +0000 (-0500) Subject: fsx: Replace use of bcmp() with memcmp() X-Git-Tag: v1.1.0~303 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=969f36df3e22ff0893bc74bfbab4fee55df008ab;p=xfstests-dev.git 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" Signed-off-by: Eric Sandeen --- diff --git a/ltp/fsx.c b/ltp/fsx.c index fb15064a..6ebc0c6b 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");