| To: | xfs-masters@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 4/6] fsx: Replace use of bcmp() with memcmp() |
| From: | "Theodore Ts'o" <tytso@xxxxxxx> |
| Date: | Tue, 12 May 2009 12:14:23 -0400 |
| Cc: | "Theodore Ts'o" <tytso@xxxxxxx> |
| In-reply-to: | <1242144865-6967-3-git-send-email-tytso@xxxxxxx> |
| References: | <1242144865-6967-1-git-send-email-tytso@xxxxxxx> <1242144865-6967-2-git-send-email-tytso@xxxxxxx> <1242144865-6967-3-git-send-email-tytso@xxxxxxx> |
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@xxxxxxx>
---
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
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH 6/6] fsx: Update copyright statement to be the APSL 2.0, Theodore Ts'o |
|---|---|
| Next by Date: | Re: [PATCH 6/6] fsx: Update copyright statement to be the APSL 2.0, Andrew Morton |
| Previous by Thread: | [PATCH 3/6] fsx: Replace use of bzero() with memset(), Theodore Ts'o |
| Next by Thread: | [PATCH 5/6] fsx: Add check for mmap last-page zero fill, Theodore Ts'o |
| Indexes: | [Date] [Thread] [Top] [All Lists] |