summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-peer-utils.c
diff options
context:
space:
mode:
authorManikandan Selvaganesh <mselvaga@redhat.com>2015-02-02 11:57:54 +0530
committerVijay Bellur <vbellur@redhat.com>2015-04-02 03:21:08 -0700
commit1d6cd6bb0f2f5875e8e4ad370cf1ff2c601cbfd4 (patch)
treeee33c0da18965079b2c95de1dfa3c794be7539f7 /xlators/mgmt/glusterd/src/glusterd-peer-utils.c
parent12e603bb9d8bc220eeea01c0ecc8ca63f9df4bc4 (diff)
Xlators : Fixed typos
Change-Id: I948f85cb369206ee8ce8b8cd5e48cae9adb971c9 BUG: 1075417 Signed-off-by: Manikandan Selvaganesh <mselvaga@redhat.com> Reviewed-on: http://review.gluster.org/9529 Reviewed-by: Niels de Vos <ndevos@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> Reviewed-by: Humble Devassy Chirammal <humble.devassy@gmail.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-peer-utils.c')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-peer-utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-peer-utils.c b/xlators/mgmt/glusterd/src/glusterd-peer-utils.c
index 2d555a8..046142b 100644
--- a/xlators/mgmt/glusterd/src/glusterd-peer-utils.c
+++ b/xlators/mgmt/glusterd/src/glusterd-peer-utils.c
@@ -250,7 +250,7 @@ glusterd_peerinfo_find (uuid_t uuid, const char *hostname)
* values using the passed parameters.
* @hostname is added as the first entry in peerinfo->hostnames list and also
* set to peerinfo->hostname.
- * It returns a pointer to peerinfo object if successfull and returns NULL
+ * It returns a pointer to peerinfo object if successful and returns NULL
* otherwise. The caller should take care of freeing the created peerinfo
* object.
*/
@@ -510,7 +510,7 @@ out:
}
/* gd_add_friend_to_dict() adds details of @friend into @dict with the given
- * @prefix. All the parameters are compulsary.
+ * @prefix. All the parameters are compulsory.
*
* The complete address list is added to the dict only if the cluster op-version
* is >= GD_OP_VERSION_3_6_0
@@ -545,7 +545,7 @@ gd_add_friend_to_dict (glusterd_peerinfo_t *friend, dict_t *dict,
}
/* Setting the first hostname from the list with this key for backward
- * compatability
+ * compatibility
*/
memset (key, 0, sizeof (key));
snprintf (key, sizeof (key), "%s.hostname", prefix);
@@ -707,7 +707,7 @@ out:
/* gd_update_peerinfo_from_dict will update the hostnames for @peerinfo from
* peer details with @prefix in @dict.
- * Returns 0 on sucess and -1 on failure.
+ * Returns 0 on success and -1 on failure.
*/
int
gd_update_peerinfo_from_dict (glusterd_peerinfo_t *peerinfo, dict_t *dict,