doc: Assorted typo fixes
authorRémi Audebert <halfr@lse.epita.fr>
Mon, 19 Jan 2015 09:46:23 +0000 (10:46 +0100)
committerDjalal Harouni <tixxdz@opendz.org>
Mon, 19 Jan 2015 11:43:56 +0000 (12:43 +0100)
Signed-off-by: Rémi Audebert <halfr@lse.epita.fr>
Signed-off-by: Djalal Harouni <tixxdz@opendz.org>
kdbus.txt
match.c
pool.c
queue.c
test/kdbus-util.c
test/test-connection.c

index 2592a7e37079dc8a33a2c383a80b2e4c7d0d4387..b2392ea574e0a88f7f8fbe9bd2b5927ecb4396c1 100644 (file)
--- a/kdbus.txt
+++ b/kdbus.txt
@@ -864,7 +864,7 @@ struct kdbus_msg {
 
     KDBUS_MSG_NO_AUTO_START
       By default, when a message is sent to an activator connection, the
-      activator notified and will start an implementer. This flag inhibits
+      activator is notified and will start an implementer. This flag inhibits
       that behavior. With this bit set, and the remote being an activator,
       -EADDRNOTAVAIL is returned from the ioctl.
 
@@ -2010,7 +2010,7 @@ For KDBUS_CMD_NAME_ACQUIRE:
 For KDBUS_CMD_NAME_RELEASE:
 
   -EINVAL      Invalid command flags, or invalid name provided
-  -ESRCH       Name is not found found in the registry
+  -ESRCH       Name is not found in the registry
   -EADDRINUSE  Name is owned by a different connection and can't be released
 
 For KDBUS_CMD_NAME_LIST:
@@ -2057,7 +2057,7 @@ For KDBUS_CMD_MATCH_REMOVE:
 This is a simplified outline of the internal kdbus object relations, for
 those interested in the inner life of the driver implementation.
 
-From the a mount point's (domain's) perspective:
+From a mount point's (domain's) perspective:
 
 struct kdbus_domain
   |» struct kdbus_domain_user *user (many, owned)
diff --git a/match.c b/match.c
index d4f21848f66bdda508ef5fe05b71647b8066fc5b..aae9a852ffcc078623234d01d66151c6d5f9c0a9 100644 (file)
--- a/match.c
+++ b/match.c
@@ -356,7 +356,7 @@ static int kdbus_match_db_remove_unlocked(struct kdbus_match_db *mdb,
  *                             kdbus_notify_id_change
  *
  * For kdbus_notify_{id,name}_change structs, only the ID and name fields
- * are looked at at when adding an entry. The flags are unused.
+ * are looked at when adding an entry. The flags are unused.
  *
  * Also note that KDBUS_ITEM_BLOOM_MASK, KDBUS_ITEM_NAME and KDBUS_ITEM_ID
  * are used to match messages from userspace, while the others apply to
diff --git a/pool.c b/pool.c
index 1fff68d95c1e33fd288d6b6146b56c7ac1ab8e61..44667dd258826324032a6ba6aa5d712032484ee1 100644 (file)
--- a/pool.c
+++ b/pool.c
@@ -346,7 +346,7 @@ static void __kdbus_pool_slice_release(struct kdbus_pool_slice *slice)
 
 /**
  * kdbus_pool_slice_release() - drop kernel-reference on allocated slice
- * @slice:             Slice allocated from the the pool
+ * @slice:             Slice allocated from the pool
  *
  * This releases the kernel-reference on the given slice. If the
  * kernel-reference and the user-reference on a slice are dropped, the slice is
diff --git a/queue.c b/queue.c
index 53ab51a0f7919a46f613d9b5ab3ac301c73c5273..04e010bf780c10d1e680a41cb36465d786ef954d 100644 (file)
--- a/queue.c
+++ b/queue.c
@@ -401,8 +401,8 @@ int kdbus_queue_entry_install(struct kdbus_queue_entry *entry,
        }
 
        /*
-        * The offsets stored in the slice are relative to the the start
-        * of the payload slice. When exporting them, they need to become
+        * The offsets stored in the slice are relative to the start of
+        * the payload slice. When exporting them, they need to become
         * relative to the pool, so get the payload slice's offset first.
         */
        if (entry->slice_vecs)
index 264d7abf4a0f30a1c14b8cefe544a14f5d5b6ebb..4a57c9586d9f927fa3d1b148abf0b4c82e72204e 100644 (file)
@@ -1184,7 +1184,7 @@ int kdbus_name_list(struct kdbus_conn *conn, uint64_t flags)
                        }
 
                kdbus_printf("%8llu flags=0x%08llx conn=0x%08llx '%s'\n",
-                            name->owner_id, (unsigned long long )flags,
+                            name->owner_id, (unsigned long longflags,
                             name->conn_flags, n);
        }
        kdbus_printf("\n");
index db19b8163535ffcd1bc7c48d4bdec0a9dab81829..c2ae6531645f5cd136574ba056f8a2dc62c93b82 100644 (file)
@@ -75,8 +75,8 @@ int kdbus_test_hello(struct kdbus_test_env *env)
 
        /*
         * The connection created by the core requires ALL meta flags
-        * to be sent. An attempt to send less that that should result
-        * in -ECONNREFUSED.
+        * to be sent. An attempt to send less than that should result in
+        * -ECONNREFUSED.
         */
        hello.attach_flags_send = _KDBUS_ATTACH_ALL & ~KDBUS_ATTACH_TIMESTAMP;
        ret = ioctl(fd, KDBUS_CMD_HELLO, &hello);