xfs
[Top] [All Lists]

[PATCH] xfsprogs: fix some warnings

To: xfs@xxxxxxxxxxx
Subject: [PATCH] xfsprogs: fix some warnings
From: Alex Elder <aelder@xxxxxxx>
Date: Fri, 12 Feb 2010 14:49:45 -0600
User-agent: Heirloom mailx 12.4 7/29/08
Fix a couple of build warnings.

Signed-off-by: Alex Elder <aelder@xxxxxxx>

---
 ltp/fsx.c    |    2 +-
 src/loggen.c |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

Index: b/ltp/fsx.c
===================================================================
--- a/ltp/fsx.c
+++ b/ltp/fsx.c
@@ -1038,7 +1038,7 @@ __aio_rw(int rw, int fd, char *buf, unsi
                        fprintf(stderr, "bad io length: %lu instead of %u\n",
                                        res, len);
                else {
-                       fprintf(stderr, "errcode=%d\n", -res);
+                       fprintf(stderr, "errcode=%ld\n", -res);
                        fprintf(stderr, "aio_rw: async io failed: %s\n",
                                        strerror(-res));
                        ret = res;
Index: b/src/loggen.c
===================================================================
--- a/src/loggen.c
+++ b/src/loggen.c
@@ -240,6 +240,7 @@ loggen_empty(int count)
     blfs.blf_type       = XFS_LI_BUF;
     blfs.blf_size       = 2;
     blfs.blf_flags      = XFS_BLI_CANCEL;
+    blfs.blf_len        = 0;
     blfs.blf_blkno      = 1;
     blfs.blf_map_size   = 1;
     blfs.blf_data_map[0]= 0;

<Prev in Thread] Current Thread [Next in Thread>