summaryrefslogtreecommitdiffstats
path: root/api/src
diff options
context:
space:
mode:
authorPoornima G <pgurusid@redhat.com>2014-04-07 17:38:32 +0530
committerVijay Bellur <vbellur@redhat.com>2014-04-08 01:35:23 -0700
commit6567d141c1b0112acb35e711371ae5a879fc645a (patch)
tree5d012b4842c4d58e32c5704f102ba80d0562c69a /api/src
parentaef305334c379f6875f0f9ded1e05526c8e36c81 (diff)
gfapi: In glfs_set_volfile_server() remove the port number check.
The documentation for glfs_set_volfile_server() api says that the port zero is a valid value. Specifying 0 uses the default port number GF_DEFAULT_BASE_PORT. Hence removing the check for port being zero. Change-Id: I942a7fe54a418231a438ab67756537df8f28d2de BUG: 1084964 Signed-off-by: Poornima G <pgurusid@redhat.com> Reviewed-on: http://review.gluster.org/7409 Reviewed-by: Raghavendra Talur <rtalur@redhat.com> Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Vijay Bellur <vbellur@redhat.com>
Diffstat (limited to 'api/src')
-rw-r--r--api/src/glfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/api/src/glfs.c b/api/src/glfs.c
index 64c37abfa65..73c46517dad 100644
--- a/api/src/glfs.c
+++ b/api/src/glfs.c
@@ -351,7 +351,7 @@ glfs_set_volfile_server (struct glfs *fs, const char *transport,
server_cmdline_t *tmp = NULL;
int ret = -1;
- if (!transport || !host || !port) {
+ if (!transport || !host) {
errno = EINVAL;
return ret;
}