From d3e9a97b6ef340f827cf55de5340a8bf5c732f3e Mon Sep 17 00:00:00 2001 From: Mohammed Junaid Ahmed Date: Wed, 16 Mar 2011 09:43:21 +0000 Subject: protocol/server: White space cleanup and NULL check validations. Signed-off-by: Junaid Signed-off-by: Amar Tumballi Signed-off-by: Vijay Bellur BUG: 2346 (Log message enhancements in GlusterFS - phase 1) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2346 --- xlators/protocol/server/src/server-handshake.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'xlators/protocol/server/src/server-handshake.c') diff --git a/xlators/protocol/server/src/server-handshake.c b/xlators/protocol/server/src/server-handshake.c index 709e36b56..1dc05f032 100644 --- a/xlators/protocol/server/src/server-handshake.c +++ b/xlators/protocol/server/src/server-handshake.c @@ -109,14 +109,14 @@ _volfile_update_checksum (xlator_t *this, char *key, uint32_t checksum) temp_volfile->checksum = checksum; } - out: +out: return 0; } static size_t getspec_build_volfile_path (xlator_t *this, const char *key, char *path, - size_t path_len) + size_t path_len) { int ret = -1; int free_filename = 0; @@ -205,7 +205,7 @@ _validate_volfile_checksum (xlator_t *this, char *key, if (!temp_volfile) { ret = getspec_build_volfile_path (this, key, filename, - sizeof (filename)); + sizeof (filename)); if (ret <= 0) goto out; fd = open (filename, O_RDONLY); @@ -377,7 +377,7 @@ server_setvolume (rpcsvc_request_t *req) op_errno = ENOMEM; goto fail; } - + ret = dict_unserialize (buf, args.dict.dict_len, ¶ms); if (ret < 0) { ret = dict_set_str (reply, "ERROR", @@ -438,7 +438,7 @@ server_setvolume (rpcsvc_request_t *req) ret = gf_asprintf (&msg, "version mismatch: client(%d)" " - client-mgmt(%d)", fop_version, mgmt_version); - /* get_supported_version (req)); */ + /* get_supported_version (req)); */ if (-1 == ret) { gf_log (this->name, GF_LOG_ERROR, "asprintf failed while setting up error msg"); @@ -470,7 +470,7 @@ server_setvolume (rpcsvc_request_t *req) xl = get_xlator_by_name (this, name); if (xl == NULL) { ret = gf_asprintf (&msg, "remote-subvolume \"%s\" is not found", - name); + name); if (-1 == ret) { gf_log (this->name, GF_LOG_ERROR, "asprintf failed while setting error msg"); -- cgit