Patchwork [BUG:1307] mgmt/glusterd: fix warnings during build.

login
register
Submitter Raghavendra G
Date 2010-09-03 07:40:45
Message ID <20100903074045.GA29078@dev.gluster.com>
Download mbox | patch
Permalink /patch/4518/
State Accepted
Delegated to: Anand Avati
Headers show

Comments

Raghavendra G - 2010-09-03 07:40:45
Signed-off-by: Raghavendra G <raghavendra@gluster.com>
---
 xlators/mgmt/glusterd/src/glusterd-handler.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

Patch

diff --git a/xlators/mgmt/glusterd/src/glusterd-handler.c b/xlators/mgmt/glusterd/src/glusterd-handler.c
index 9829c1b..11f0283 100644
--- a/xlators/mgmt/glusterd/src/glusterd-handler.c
+++ b/xlators/mgmt/glusterd/src/glusterd-handler.c
@@ -662,8 +662,9 @@  glusterd_check_and_rebalance (glusterd_volinfo_t *volinfo, char *dir)
                 }
                 if (S_ISREG (stbuf.st_mode) && ((stbuf.st_mode & 01000) == 01000)) {
                         /* TODO: run the defrag */
-                        snprintf (tmp_filename, 1024, "%s/.%s.gfs%zu", dir,
-                                  entry->d_name, stbuf.st_size);
+                        snprintf (tmp_filename, 1024, "%s/.%s.gfs%llu", dir,
+                                  entry->d_name,
+                                  (unsigned long long)stbuf.st_size);
 
                         dst_fd = creat (tmp_filename, (stbuf.st_mode & ~01000));
                         if (dst_fd == -1)