# Fix spelling errors in source code.

diff -Naur glusterfs-3.2.7qa1.orig/ChangeLog glusterfs-3.2.7qa1/ChangeLog
--- glusterfs-3.2.7qa1.orig/ChangeLog	2012-04-12 19:21:25.000000000 +0200
+++ glusterfs-3.2.7qa1/ChangeLog	2012-06-05 19:46:00.837068721 +0200
@@ -22917,7 +22917,7 @@
       - change signature of rpc_clnt_submit to accept rsphdr_vector and
         rsppayload_vector. The buffers pointed by these vectors will be
         from iobufs and these iobufs are added to an iobref which should
-        also be passed as an arguement to rpc_clnt_submit.
+        also be passed as an argument to rpc_clnt_submit.
     
     Signed-off-by: Raghavendra G <raghavendra@gluster.com>
     Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
@@ -29116,7 +29116,7 @@
 Author: Raghavendra G <raghavendra@gluster.com>
 Date:   Thu Dec 3 21:47:23 2009 +0000
 
-    performance/stat-prefetch: add "caller" arguement to sp_process_inode_ctx.
+    performance/stat-prefetch: add "caller" argument to sp_process_inode_ctx.
     
     - since sp_process_inode_ctx is called by many fops, if the context is not
         set "caller" argument can be logged in log msgs to identify caller.
@@ -29572,7 +29572,7 @@
 Author: Raghavendra G <raghavendra@gluster.com>
 Date:   Wed Dec 2 12:29:56 2009 +0000
 
-    performance/stat-prefetch: get inode context from local->loc.inode instead of inode passed as arguement in sp_lookup_cbk.
+    performance/stat-prefetch: get inode context from local->loc.inode instead of inode passed as argument in sp_lookup_cbk.
     
     - @inode in sp_lookup_cbk may be NULL in case of failure of lookup.
     
@@ -31020,7 +31020,7 @@
 
     libglusterfsclient: change the prototype of glusterfs_lsetxattr.
     
-    - it no longer needs handle to be passed as arguement. handle is searched
+    - it no longer needs handle to be passed as argument. handle is searched
         in the vmp table based on the path.
     
     Signed-off-by: Raghavendra G <raghavendra@gluster.com>
@@ -41924,7 +41924,7 @@
 Author: Raghavendra G <raghavendra@zresearch.com>
 Date:   Tue Apr 14 02:53:09 2009 -0700
 
-    server-helpers: Add check for NULL connection arguement being passed in helpers.
+    server-helpers: Add check for NULL connection argument being passed in helpers.
     
     Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
 
diff -Naur glusterfs-3.2.7qa1.orig/libglusterfs/src/common-utils.c glusterfs-3.2.7qa1/libglusterfs/src/common-utils.c
--- glusterfs-3.2.7qa1.orig/libglusterfs/src/common-utils.c	2012-04-12 19:21:20.000000000 +0200
+++ glusterfs-3.2.7qa1/libglusterfs/src/common-utils.c	2012-06-05 19:46:00.841068429 +0200
@@ -451,7 +451,7 @@
         int j = 0;
 
         if (str == NULL || delim == NULL || tokens == NULL || token_count == NULL) {
-                gf_log_callingfn ("", GF_LOG_WARNING, "arguement invalid");
+                gf_log_callingfn ("", GF_LOG_WARNING, "argument invalid");
                 return -1;
         }
 
@@ -522,7 +522,7 @@
         tmp_str = strdup (str);
 
         if (str == NULL || delim == NULL || match == NULL || tmp_str == NULL) {
-                gf_log_callingfn ("", GF_LOG_WARNING, "arguement invalid");
+                gf_log_callingfn ("", GF_LOG_WARNING, "argument invalid");
                 ret = -1;
                 goto out;
         }
@@ -553,7 +553,7 @@
         const char *vname = NULL;
 
         if (volume_name == NULL) {
-                gf_log_callingfn ("", GF_LOG_WARNING, "arguement invalid");
+                gf_log_callingfn ("", GF_LOG_WARNING, "argument invalid");
                 return -1;
         }
 
@@ -582,7 +582,7 @@
 
         if (str == NULL || n == NULL)
         {
-                gf_log_callingfn ("", GF_LOG_WARNING, "arguement invalid");
+                gf_log_callingfn ("", GF_LOG_WARNING, "argument invalid");
                 errno = EINVAL;
                 return -1;
         }
@@ -637,7 +637,7 @@
 
         if (str == NULL || n == NULL)
         {
-                gf_log_callingfn ("", GF_LOG_WARNING, "arguement invalid");
+                gf_log_callingfn ("", GF_LOG_WARNING, "argument invalid");
                 errno = EINVAL;
                 return -1;
         }
@@ -690,7 +690,7 @@
 
         if (str == NULL || n == NULL)
         {
-                gf_log_callingfn ("", GF_LOG_WARNING, "arguement invalid");
+                gf_log_callingfn ("", GF_LOG_WARNING, "argument invalid");
                 errno = EINVAL;
                 return -1;
         }
@@ -730,7 +730,7 @@
 
         if (str == NULL || n == NULL)
         {
-                gf_log_callingfn ("", GF_LOG_WARNING, "arguement invalid");
+                gf_log_callingfn ("", GF_LOG_WARNING, "argument invalid");
                 errno = EINVAL;
                 return -1;
         }
@@ -785,7 +785,7 @@
 
         if (str == NULL || n == NULL)
         {
-                gf_log_callingfn ("", GF_LOG_WARNING, "arguement invalid");
+                gf_log_callingfn ("", GF_LOG_WARNING, "argument invalid");
                 errno = EINVAL;
                 return -1;
         }
@@ -838,7 +838,7 @@
         int    old_errno = 0;
 
         if (str == NULL || n == NULL) {
-                gf_log_callingfn ("", GF_LOG_WARNING, "arguement invalid");
+                gf_log_callingfn ("", GF_LOG_WARNING, "argument invalid");
                 errno = EINVAL;
                 return -1;
         }
@@ -873,7 +873,7 @@
 
         if (str == NULL || n == NULL)
         {
-                gf_log_callingfn ("", GF_LOG_WARNING, "arguement invalid");
+                gf_log_callingfn ("", GF_LOG_WARNING, "argument invalid");
                 errno = EINVAL;
                 return -1;
         }
@@ -913,7 +913,7 @@
 
         if (str == NULL || n == NULL)
         {
-                gf_log_callingfn ("", GF_LOG_WARNING, "arguement invalid");
+                gf_log_callingfn ("", GF_LOG_WARNING, "argument invalid");
                 errno = EINVAL;
                 return -1;
         }
@@ -1304,7 +1304,7 @@
 
         if (str == NULL || n == NULL)
         {
-                gf_log_callingfn ("", GF_LOG_WARNING, "arguement invalid");
+                gf_log_callingfn ("", GF_LOG_WARNING, "argument invalid");
                 errno = EINVAL;
                 return -1;
         }
@@ -1415,7 +1415,7 @@
 gf_string2boolean (const char *str, gf_boolean_t *b)
 {
         if (str == NULL) {
-                gf_log_callingfn ("", GF_LOG_WARNING, "arguement invalid");
+                gf_log_callingfn ("", GF_LOG_WARNING, "argument invalid");
                 return -1;
         }
 
@@ -1735,7 +1735,7 @@
         int length = 0;
 
         if (address == NULL) {
-                gf_log_callingfn ("", GF_LOG_WARNING, "arguement invalid");
+                gf_log_callingfn ("", GF_LOG_WARNING, "argument invalid");
                 goto out;
         }
 
diff -Naur glusterfs-3.2.7qa1.orig/rpc/rpc-lib/src/rpcsvc.c glusterfs-3.2.7qa1/rpc/rpc-lib/src/rpcsvc.c
--- glusterfs-3.2.7qa1.orig/rpc/rpc-lib/src/rpcsvc.c	2012-04-12 19:21:21.000000000 +0200
+++ glusterfs-3.2.7qa1/rpc/rpc-lib/src/rpcsvc.c	2012-06-05 19:46:00.841068429 +0200
@@ -194,7 +194,7 @@
 
 
 /* this procedure can only pass 4 arguments to registered notifyfn. To send more
- * arguements call wrapper->notify directly.
+ * arguments call wrapper->notify directly.
  */
 inline void
 rpcsvc_program_notify (rpcsvc_listener_t *listener, rpcsvc_event_t event,
