From 3dd38a4a35885adf6ac2e0c6c4e38d36ab862441 Mon Sep 17 00:00:00 2001 From: Emmanuel Dreyfus Date: Sun, 29 Apr 2012 09:51:06 +0200 Subject: get rid of ZR_PATH_MAX As suggested by Amar Tumballi Change-Id: Id1cd74fd7530e8c846f3be4a88b1fa301a728cf1 BUG: 764655 Signed-off-by: Emmanuel Dreyfus Reviewed-on: http://review.gluster.com/3243 Tested-by: Gluster Build System Reviewed-by: Amar Tumballi Reviewed-by: Vijay Bellur --- xlators/cluster/unify/src/unify.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xlators/cluster/unify/src/unify.c') diff --git a/xlators/cluster/unify/src/unify.c b/xlators/cluster/unify/src/unify.c index 6dc93083dc0..f3da6d0bac7 100644 --- a/xlators/cluster/unify/src/unify.c +++ b/xlators/cluster/unify/src/unify.c @@ -1228,7 +1228,7 @@ unify_open_readlink_cbk (call_frame_t *frame, } else { char *tmp_str = gf_strdup (local->loc1.path); char *tmp_base = dirname (tmp_str); - local->name = GF_CALLOC (1, ZR_PATH_MAX, gf_unify_mt_char); + local->name = GF_CALLOC (1, PATH_MAX, gf_unify_mt_char); strcpy (local->name, tmp_base); strncat (local->name, "/", 1); strcat (local->name, path); @@ -1318,7 +1318,7 @@ unify_open (call_frame_t *frame, unify_open_readlink_cbk, NS(this), NS(this)->fops->readlink, - loc, ZR_PATH_MAX); + loc, PATH_MAX); return 0; } #endif /* GF_DARWIN_HOST_OS */ -- cgit