summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorstein Husebø <torstein@huseboe.net>2016-07-10 14:48:23 +0200
committerSven Eden <yamakuzure@gmx.net>2017-06-16 10:13:01 +0200
commit7a6781d5aa01c5609232f60bbda7ba9a5bd1f74c (patch)
tree534198134a9b187e86690c2546b9304f304fb780
parent93b089be778452f2c34c468666b1f5646d64d331 (diff)
treewide: fix typos and remove accidental repetition of words
-rw-r--r--src/basic/copy.c2
-rw-r--r--src/basic/fileio.c2
-rw-r--r--src/basic/mount-util.c2
-rw-r--r--src/basic/strv.c2
-rw-r--r--src/basic/user-util.c2
-rw-r--r--src/libelogind/sd-bus/bus-message.c4
6 files changed, 7 insertions, 7 deletions
diff --git a/src/basic/copy.c b/src/basic/copy.c
index 66279cf92..4e5f392fe 100644
--- a/src/basic/copy.c
+++ b/src/basic/copy.c
@@ -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);
}
diff --git a/src/basic/fileio.c b/src/basic/fileio.c
index d3fb86174..525cca738 100644
--- a/src/basic/fileio.c
+++ b/src/basic/fileio.c
@@ -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;
diff --git a/src/basic/mount-util.c b/src/basic/mount-util.c
index d5ec2afdd..a616d8733 100644
--- a/src/basic/mount-util.c
+++ b/src/basic/mount-util.c
@@ -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. */
diff --git a/src/basic/strv.c b/src/basic/strv.c
index 2e2dc3e44..251031e01 100644
--- a/src/basic/strv.c
+++ b/src/basic/strv.c
@@ -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);
diff --git a/src/basic/user-util.c b/src/basic/user-util.c
index f57555422..fbe9f2a96 100644
--- a/src/basic/user-util.c
+++ b/src/basic/user-util.c
@@ -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. */
diff --git a/src/libelogind/sd-bus/bus-message.c b/src/libelogind/sd-bus/bus-message.c
index d4f59117b..129c612ec 100644
--- a/src/libelogind/sd-bus/bus-message.c
+++ b/src/libelogind/sd-bus/bus-message.c
@@ -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;