diff options
author | Thomas Haller <thaller@redhat.com> | 2018-09-30 21:20:08 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-09-30 21:32:33 +0200 |
commit | f21f31b24be27c8eb245d47507b0f482929c5b08 (patch) | |
tree | de1950ca8ac506343e68e284127c8eaa16f68843 /src/basic | |
parent | 213e759ad567ce2a2fd7a9f2952cbcfbc909df9f (diff) | |
download | systemd-f21f31b24be27c8eb245d47507b0f482929c5b08.tar.gz systemd-f21f31b24be27c8eb245d47507b0f482929c5b08.tar.bz2 systemd-f21f31b24be27c8eb245d47507b0f482929c5b08.zip |
trivial: fix spelling in code comments
Based-on-patch-by: Rafael Fontenelle <rafaelff@gnome.org>
Diffstat (limited to 'src/basic')
-rw-r--r-- | src/basic/env-util.c | 4 | ||||
-rw-r--r-- | src/basic/hashmap.h | 2 | ||||
-rw-r--r-- | src/basic/hexdecoct.c | 4 | ||||
-rw-r--r-- | src/basic/parse-util.c | 2 | ||||
-rw-r--r-- | src/basic/path-util.c | 2 | ||||
-rw-r--r-- | src/basic/process-util.c | 2 | ||||
-rw-r--r-- | src/basic/time-util.c | 2 |
7 files changed, 9 insertions, 9 deletions
diff --git a/src/basic/env-util.c b/src/basic/env-util.c index a784a30e1d..3b8130b03e 100644 --- a/src/basic/env-util.c +++ b/src/basic/env-util.c @@ -114,7 +114,7 @@ bool strv_env_is_valid(char **e) { if (!env_assignment_is_valid(*p)) return false; - /* Check if there are duplicate assginments */ + /* Check if there are duplicate assignments */ k = strcspn(*p, "="); STRV_FOREACH(q, p + 1) if (strneq(*p, *q, k) && (*q)[k] == '=') @@ -388,7 +388,7 @@ int strv_env_replace(char ***l, char *p) { assert(p); /* Replace first occurrence of the env var or add a new one in the - * string list. Drop other occurences. Edits in-place. Does not copy p. + * string list. Drop other occurrences. Edits in-place. Does not copy p. * p must be a valid key=value assignment. */ diff --git a/src/basic/hashmap.h b/src/basic/hashmap.h index 274afb395c..b771ceccdc 100644 --- a/src/basic/hashmap.h +++ b/src/basic/hashmap.h @@ -15,7 +15,7 @@ * necessary to instantiate an object for each Hashmap use. * * If ENABLE_DEBUG_HASHMAP is defined (by configuring with --enable-debug=hashmap), - * the implemention will: + * the implementation will: * - store extra data for debugging and statistics (see tools/gdb-sd_dump_hashmaps.py) * - perform extra checks for invalid use of iterators */ diff --git a/src/basic/hexdecoct.c b/src/basic/hexdecoct.c index 7748e8352c..3b80a03fa1 100644 --- a/src/basic/hexdecoct.c +++ b/src/basic/hexdecoct.c @@ -79,7 +79,7 @@ static int unhex_next(const char **p, size_t *l) { assert(l); /* Find the next non-whitespace character, and decode it. We - * greedily skip all preceeding and all following whitespace. */ + * greedily skip all preceding and all following whitespace. */ for (;;) { if (*l == 0) @@ -647,7 +647,7 @@ static int unbase64_next(const char **p, size_t *l) { assert(l); /* Find the next non-whitespace character, and decode it. If we find padding, we return it as INT_MAX. We - * greedily skip all preceeding and all following whitespace. */ + * greedily skip all preceding and all following whitespace. */ for (;;) { if (*l == 0) diff --git a/src/basic/parse-util.c b/src/basic/parse-util.c index db38f91c83..a9085348b5 100644 --- a/src/basic/parse-util.c +++ b/src/basic/parse-util.c @@ -570,7 +570,7 @@ int parse_fractional_part_u(const char **p, size_t digits, unsigned *res) { s = *p; - /* accept any number of digits, strtoull is limted to 19 */ + /* accept any number of digits, strtoull is limited to 19 */ for (i=0; i < digits; i++,s++) { if (*s < '0' || *s > '9') { if (i == 0) diff --git a/src/basic/path-util.c b/src/basic/path-util.c index b62786f27e..f3c6c16aae 100644 --- a/src/basic/path-util.c +++ b/src/basic/path-util.c @@ -425,7 +425,7 @@ int path_compare(const char *a, const char *b) { assert(a); assert(b); - /* A relative path and an abolute path must not compare as equal. + /* A relative path and an absolute path must not compare as equal. * Which one is sorted before the other does not really matter. * Here a relative path is ordered before an absolute path. */ d = (a[0] == '/') - (b[0] == '/'); diff --git a/src/basic/process-util.c b/src/basic/process-util.c index c887f9708b..1098cf453f 100644 --- a/src/basic/process-util.c +++ b/src/basic/process-util.c @@ -425,7 +425,7 @@ int is_kernel_thread(pid_t pid) { q += l; } - /* Skip preceeding whitespace */ + /* Skip preceding whitespace */ l = strspn(q, WHITESPACE); if (l < 1) return -EINVAL; diff --git a/src/basic/time-util.c b/src/basic/time-util.c index 81d3f3f38f..9ac739b42a 100644 --- a/src/basic/time-util.c +++ b/src/basic/time-util.c @@ -905,7 +905,7 @@ int parse_timestamp(const char *t, usec_t *usec) { * Otherwise just cut it off. */ with_tz = !STR_IN_SET(tz, tzname[0], tzname[1]); - /* Cut off the timezone if we dont need it. */ + /* Cut off the timezone if we don't need it. */ if (with_tz) t = strndupa(t, last_space - t); |