diff options
author | Emmanuel Dreyfus <manu@netbsd.org> | 2012-04-29 09:51:06 +0200 |
---|---|---|
committer | Vijay Bellur <vijay@gluster.com> | 2012-05-01 10:24:26 -0700 |
commit | 3dd38a4a35885adf6ac2e0c6c4e38d36ab862441 (patch) | |
tree | 3807fd14987f20e8765cff1c820387646deeda08 /xlators/cluster | |
parent | d09a5beae2d26803b67ab8f3de6862044a8a758c (diff) |
get rid of ZR_PATH_MAX
As suggested by Amar Tumballi
Change-Id: Id1cd74fd7530e8c846f3be4a88b1fa301a728cf1
BUG: 764655
Signed-off-by: Emmanuel Dreyfus <manu@netbsd.org>
Reviewed-on: http://review.gluster.com/3243
Tested-by: Gluster Build System <jenkins@build.gluster.com>
Reviewed-by: Amar Tumballi <amarts@redhat.com>
Reviewed-by: Vijay Bellur <vijay@gluster.com>
Diffstat (limited to 'xlators/cluster')
-rw-r--r-- | xlators/cluster/unify/src/unify.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 */ |