summaryrefslogtreecommitdiffstats
path: root/xlators/protocol
diff options
context:
space:
mode:
authorBasavanagowda Kanur <gowda@gluster.com>2009-07-06 05:47:30 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-07-06 12:37:07 -0700
commitbf70c1361f8eb82607f5fd9396edfad62ced7b89 (patch)
tree1a0d1861ec176482d765ec631ad058e7962dadbb /xlators/protocol
parentf0314a6b781126dbbb25edf37460f68750d88896 (diff)
protocol/server - replace ZR_FILENAME_MAX by NAME_MAX
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'xlators/protocol')
-rw-r--r--xlators/protocol/server/src/server-protocol.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/xlators/protocol/server/src/server-protocol.c b/xlators/protocol/server/src/server-protocol.c
index 5d70409bf..7097530bd 100644
--- a/xlators/protocol/server/src/server-protocol.c
+++ b/xlators/protocol/server/src/server-protocol.c
@@ -6714,8 +6714,8 @@ server_checksum_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
size_t hdrlen = 0;
int32_t gf_errno = 0;
- hdrlen = gf_hdr_len (rsp, ZR_FILENAME_MAX + 1 + ZR_FILENAME_MAX + 1);
- hdr = gf_hdr_new (rsp, ZR_FILENAME_MAX + 1 + ZR_FILENAME_MAX + 1);
+ hdrlen = gf_hdr_len (rsp, NAME_MAX + 1 + NAME_MAX + 1);
+ hdr = gf_hdr_new (rsp, NAME_MAX + 1 + NAME_MAX + 1);
rsp = gf_param (hdr);
hdr->rsp.op_ret = hton32 (op_ret);
@@ -6723,11 +6723,11 @@ server_checksum_cbk (call_frame_t *frame, void *cookie, xlator_t *this,
hdr->rsp.op_errno = hton32 (gf_errno);
if (op_ret >= 0) {
- memcpy (rsp->fchecksum, fchecksum, ZR_FILENAME_MAX);
- rsp->fchecksum[ZR_FILENAME_MAX] = '\0';
- memcpy (rsp->dchecksum + ZR_FILENAME_MAX,
- dchecksum, ZR_FILENAME_MAX);
- rsp->dchecksum[ZR_FILENAME_MAX + ZR_FILENAME_MAX] = '\0';
+ memcpy (rsp->fchecksum, fchecksum, NAME_MAX);
+ rsp->fchecksum[NAME_MAX] = '\0';
+ memcpy (rsp->dchecksum + NAME_MAX,
+ dchecksum, NAME_MAX);
+ rsp->dchecksum[NAME_MAX + NAME_MAX] = '\0';
}
protocol_server_reply (frame, GF_OP_TYPE_FOP_REPLY, GF_FOP_CHECKSUM,