summaryrefslogtreecommitdiffstats
path: root/xlators/cluster/afr/src
diff options
context:
space:
mode:
authorBasavanagowda Kanur <gowda@gluster.com>2009-07-06 05:47:32 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-07-06 12:37:08 -0700
commitfe3d249f1aec607aed5895d66a869620ba30f9cf (patch)
treeddaa6c3730a2cdd0daabd4623e454c8919a1d807 /xlators/cluster/afr/src
parentd538b139fb197d7397e45b4bc5a9446823186568 (diff)
cluster/afr - replace ZR_FILENAME_MAX by NAME_MAX
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'xlators/cluster/afr/src')
-rw-r--r--xlators/cluster/afr/src/afr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/xlators/cluster/afr/src/afr.c b/xlators/cluster/afr/src/afr.c
index 81665612272..31c81ffd41a 100644
--- a/xlators/cluster/afr/src/afr.c
+++ b/xlators/cluster/afr/src/afr.c
@@ -1800,13 +1800,13 @@ afr_checksum_cbk (call_frame_t *frame, void *cookie,
if (op_ret == 0 && (local->op_ret != 0)) {
local->op_ret = 0;
- local->cont.checksum.file_checksum = MALLOC (ZR_FILENAME_MAX);
+ local->cont.checksum.file_checksum = MALLOC (NAME_MAX);
memcpy (local->cont.checksum.file_checksum, file_checksum,
- ZR_FILENAME_MAX);
+ NAME_MAX);
- local->cont.checksum.dir_checksum = MALLOC (ZR_FILENAME_MAX);
+ local->cont.checksum.dir_checksum = MALLOC (NAME_MAX);
memcpy (local->cont.checksum.dir_checksum, dir_checksum,
- ZR_FILENAME_MAX);
+ NAME_MAX);
}