summaryrefslogtreecommitdiffstats
path: root/xlators
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2009-12-03 16:10:17 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-12-03 13:54:57 -0800
commitaa53bb583d2d01867a2db1d217001fc897e2b835 (patch)
tree2c0f41e380bb33e6d766088ac1a7e7240fc8406d /xlators
parentcec1f78d42f49f35448d81c944afb9afae19c959 (diff)
fixing some warnings on 64bit machine.
Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 408 (warning while building on 64bit machine..) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=408
Diffstat (limited to 'xlators')
-rw-r--r--xlators/features/locks/src/common.c2
-rw-r--r--xlators/protocol/server/src/server-protocol.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/xlators/features/locks/src/common.c b/xlators/features/locks/src/common.c
index 5c83f366e..7cbf45958 100644
--- a/xlators/features/locks/src/common.c
+++ b/xlators/features/locks/src/common.c
@@ -264,7 +264,7 @@ pl_print_verdict (char *str, int size, int op_ret, int op_errno)
}
}
- snprintf (str, size, verdict);
+ snprintf (str, size, "%s", verdict);
}
diff --git a/xlators/protocol/server/src/server-protocol.c b/xlators/protocol/server/src/server-protocol.c
index 9dc6e1184..1f2cb7d06 100644
--- a/xlators/protocol/server/src/server-protocol.c
+++ b/xlators/protocol/server/src/server-protocol.c
@@ -234,7 +234,7 @@ server_print_reply (call_frame_t *frame, int op_ret, int op_errno)
fdstr[0] = '\0';
if (state->fd)
- snprintf (fdstr, 128, " fd=%p", state->fd);
+ snprintf (fdstr, 32, " fd=%p", state->fd);
gf_log (this->name, GF_LOG_NORMAL,
"%s%s => (%d, %d)%s",