summaryrefslogtreecommitdiffstats
path: root/xlators/protocol/legacy
diff options
context:
space:
mode:
authorEmmanuel Dreyfus <manu@netbsd.org>2012-04-29 09:51:06 +0200
committerVijay Bellur <vijay@gluster.com>2012-05-01 10:24:26 -0700
commit3dd38a4a35885adf6ac2e0c6c4e38d36ab862441 (patch)
tree3807fd14987f20e8765cff1c820387646deeda08 /xlators/protocol/legacy
parentd09a5beae2d26803b67ab8f3de6862044a8a758c (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/protocol/legacy')
-rw-r--r--xlators/protocol/legacy/server/src/server-protocol.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/protocol/legacy/server/src/server-protocol.c b/xlators/protocol/legacy/server/src/server-protocol.c
index abd339542..0686398d1 100644
--- a/xlators/protocol/legacy/server/src/server-protocol.c
+++ b/xlators/protocol/legacy/server/src/server-protocol.c
@@ -5046,7 +5046,7 @@ static int
_validate_volfile_checksum (xlator_t *this, char *key,
uint32_t checksum)
{
- char filename[ZR_PATH_MAX] = {0,};
+ char filename[PATH_MAX] = {0,};
server_conf_t *conf = NULL;
struct _volfile_ctx *temp_volfile = NULL;
int ret = 0;
@@ -5121,7 +5121,7 @@ mop_getspec (call_frame_t *frame, xlator_t *bound_xl,
int32_t spec_fd = -1;
size_t file_len = 0;
size_t _hdrlen = 0;
- char filename[ZR_PATH_MAX] = {0,};
+ char filename[PATH_MAX] = {0,};
struct stat stbuf = {0,};
gf_mop_getspec_req_t *req = NULL;
uint32_t checksum = 0;