bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 5/7] lib*: Fix typos in comments (found by codespell)


From: Stefan Weil
Subject: [PATCH 5/7] lib*: Fix typos in comments (found by codespell)
Date: Sat, 3 Jan 2015 10:16:10 +0100

Signed-off-by: Stefan Weil <sw@weilnetz.de>
---
 libpager/pager-attr.c     | 2 +-
 libpager/pager.h          | 2 +-
 libps/ps.h                | 2 +-
 libshouldbeinlibc/ugids.c | 2 +-
 libstore/part.c           | 2 +-
 libstore/remap.c          | 2 +-
 libtreefs/treefs-hooks.h  | 4 ++--
 7 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/libpager/pager-attr.c b/libpager/pager-attr.c
index ad1560e..cf16d9d 100644
--- a/libpager/pager-attr.c
+++ b/libpager/pager-attr.c
@@ -20,7 +20,7 @@
 
 /* Change the attributes of the memory object underlying pager P.
    Arguments MAY_CACHE and COPY_STRATEGY are as for
-   memory_object_change_atributes.  Wait for the kernel to report
+   memory_object_change_attributes.  Wait for the kernel to report
    completion if WAIT is set.  */
 void
 pager_change_attributes (struct pager *p,
diff --git a/libpager/pager.h b/libpager/pager.h
index 29ec833..fe34238 100644
--- a/libpager/pager.h
+++ b/libpager/pager.h
@@ -109,7 +109,7 @@ pager_offer_page (struct pager *pager,
 
 /* Change the attributes of the memory object underlying pager PAGER.
    Arguments MAY_CACHE and COPY_STRATEGY are as for
-   memory_object_change_atributes.  Wait for the kernel to report
+   memory_object_change_attributes.  Wait for the kernel to report
    completion if WAIT is set.  */
 void
 pager_change_attributes (struct pager *pager,
diff --git a/libps/ps.h b/libps/ps.h
index 06af96b..3ee142d 100644
--- a/libps/ps.h
+++ b/libps/ps.h
@@ -824,7 +824,7 @@ void ps_fmt_free (struct ps_fmt *fmt);
 error_t ps_fmt_clone (struct ps_fmt *fmt, struct ps_fmt **copy);
 
 /* Write an appropriate header line for FMT, containing the titles of all its
-   fields appropiately aligned with where the values would be printed, to
+   fields appropriately aligned with where the values would be printed, to
    STREAM (without a trailing newline).  If count is non-NULL, the total
    number number of characters output is added to the integer it points to.
    If any fatal error occurs, the error code is returned, otherwise 0.  */
diff --git a/libshouldbeinlibc/ugids.c b/libshouldbeinlibc/ugids.c
index 07a11fe..cb2631b 100644
--- a/libshouldbeinlibc/ugids.c
+++ b/libshouldbeinlibc/ugids.c
@@ -58,7 +58,7 @@ ugids_add_gid (struct ugids *ugids, gid_t gid, int avail)
 }
 
 /* Add UID to UGIDS, plus any gids to which that user belongs.  If AVAIL is
-   true, the are added to the avail gids instead of the effective ones.  */
+   true, they are added to the avail gids instead of the effective ones.  */
 error_t
 ugids_add_user (struct ugids *ugids, uid_t uid, int avail)
 {
diff --git a/libstore/part.c b/libstore/part.c
index 60ef6c2..0ef2bd4 100644
--- a/libstore/part.c
+++ b/libstore/part.c
@@ -33,7 +33,7 @@
 
 /* Initialize a PedDevice using SOURCE.  The SOURCE will NOT be destroyed;
    the caller created it, it is the caller's responsilbility to free it
-   after it calls ped_device_destory.  SOURCE is not registered in Parted's
+   after it calls ped_device_destroy.  SOURCE is not registered in Parted's
    list of devices.  */
 PedDevice* ped_device_new_from_store (struct store *source);
 
diff --git a/libstore/remap.c b/libstore/remap.c
index 55ab51a..de21812 100644
--- a/libstore/remap.c
+++ b/libstore/remap.c
@@ -320,7 +320,7 @@ store_remap (struct store *source,
     /* Use the class-specific remaping function.  */
     return (* source->class->remap) (source, runs, num_runs, store);
   else
-    /* Just replace SOURCE's runs-list by an appropiately translated RUNS. */
+    /* Just replace SOURCE's runs-list by an appropriately translated RUNS. */
     {
       struct store_run *xruns = 0;
       size_t num_xruns = 0;
diff --git a/libtreefs/treefs-hooks.h b/libtreefs/treefs-hooks.h
index 3af4a54..6dc2f73 100644
--- a/libtreefs/treefs-hooks.h
+++ b/libtreefs/treefs-hooks.h
@@ -264,7 +264,7 @@ DNH(dir_init, error_t)
 /* If NODE is a symlink, copies the contents into BUF, which should have at
    least *LEN bytes available, and returns 0; if the symlink is too big,
    E2BIG is returned.  Either way, the actual length of the symlink is
-   returned in *LEN (so if it's too big, you can allocate an appropiately
+   returned in *LEN (so if it's too big, you can allocate an appropriately
    sized buffer and try again).  If NODE is not a symlink, EINVAL is
    returned.  */
 DNH(node_get_symlink, error_t, char *buf, int *len)
@@ -275,7 +275,7 @@ DNH(node_get_symlink, error_t, char *buf, int *len)
    should have at least *LEN bytes available, and returns 0; if the string is
    too big, E2BIG is returned.  Either way, the actual length of the
    translator string is returned in *LEN (so if it's too big, you can
-   allocate an appropiately sized buffer and try again).  If NODE has no
+   allocate an appropriately sized buffer and try again).  If NODE has no
    passive translator, EINVAL is returned.  */
 DNH(node_get_passive_trans, error_t, char *buf, int *len)
 #define treefs_node_get_passive_trans(node, args...)                         \
-- 
2.1.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]