chiark / gitweb /
treewide: fix typos and remove accidental repetition of words
authorTorstein Husebø <torstein@huseboe.net>
Sun, 10 Jul 2016 12:48:23 +0000 (14:48 +0200)
committerSven Eden <yamakuzure@gmx.net>
Fri, 16 Jun 2017 08:13:01 +0000 (10:13 +0200)
src/basic/copy.c
src/basic/fileio.c
src/basic/mount-util.c
src/basic/strv.c
src/basic/user-util.c
src/libelogind/sd-bus/bus-message.c

index 66279cf920262eca95a377f1ebab92b618672b17..4e5f392fe59fdc8b7a74bbdb84ea482a117f916d 100644 (file)
@@ -170,7 +170,7 @@ int copy_bytes(int fdf, int fdt, uint64_t max_bytes, bool try_reflink) {
                 /* sendfile accepts at most SSIZE_MAX-offset bytes to copy,
                  * so reduce our maximum by the amount we already copied,
                  * but don't go below our copy buffer size, unless we are
-                 * close the the limit of bytes we are allowed to copy. */
+                 * close the limit of bytes we are allowed to copy. */
                 m = MAX(MIN(COPY_BUFFER_SIZE, max_bytes), m - n);
         }
 
index d3fb86174e3a8dca9f9688a210efd2a1859d468a..525cca73899c8b42331252302425cc4d595f04ea 100644 (file)
@@ -1071,7 +1071,7 @@ int fflush_and_check(FILE *f) {
         return 0;
 }
 
-/* This is much like like mkostemp() but is subject to umask(). */
+/* This is much like mkostemp() but is subject to umask(). */
 int mkostemp_safe(char *pattern, int flags) {
         _cleanup_umask_ mode_t u = 0;
         int fd;
index d5ec2afdd99110d5f44f8578feb02d7462316adc..a616d873315542028037b33e5fe8cf4175583ba5 100644 (file)
@@ -104,7 +104,7 @@ int fd_is_mount_point(int fd, const char *filename, int flags) {
          *
          * As last fallback we do traditional fstat() based st_dev
          * comparisons. This is how things were traditionally done,
-         * but unionfs breaks breaks this since it exposes file
+         * but unionfs breaks this since it exposes file
          * systems with a variety of st_dev reported. Also, btrfs
          * subvolumes have different st_dev, even though they aren't
          * real mounts of their own. */
index 2e2dc3e4436e19d047babe1d66752767c60b156b..251031e012c078fdb4f597f3d25d09599edaa923 100644 (file)
@@ -888,7 +888,7 @@ int strv_extend_n(char ***l, const char *value, size_t n) {
         if (n == 0)
                 return 0;
 
-        /* Adds the value value n times to l */
+        /* Adds the value n times to l */
 
         k = strv_length(*l);
 
index f57555422739cadc4742d1fd490ab7769e245b89..fbe9f2a969987f86b225bd3a170173c0698aa7d5 100644 (file)
@@ -463,7 +463,7 @@ int take_etc_passwd_lock(const char *root) {
          *
          * Note that shadow-utils also takes per-database locks in
          * addition to lckpwdf(). However, we don't given that they
-         * are redundant as they they invoke lckpwdf() first and keep
+         * are redundant as they invoke lckpwdf() first and keep
          * it during everything they do. The per-database locks are
          * awfully racy, and thus we just won't do them. */
 
index d4f59117b6730b5d3ef8a53f0a276b795413b7dd..129c612ecd2df126163b2d0fafd292d24dc7077a 100644 (file)
@@ -181,7 +181,7 @@ static void *message_extend_fields(sd_bus_message *m, size_t align, size_t sz, b
                 if (!np)
                         goto poison;
         } else {
-                /* Initially, the header is allocated as part of of
+                /* Initially, the header is allocated as part of
                  * the sd_bus_message itself, let's replace it by
                  * dynamic data */
 
@@ -2879,7 +2879,7 @@ static int bus_message_close_header(sd_bus_message *m) {
 
         /* The actual user data is finished now, we just complete the
            variant and struct now (at least on gvariant). Remember
-           this position, so that during parsing we know where to to
+           this position, so that during parsing we know where to
            put the outer container end. */
         m->user_body_size = m->body_size;