summaryrefslogtreecommitdiff
path: root/src/basic/env-util.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2018-09-30 21:20:08 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-09-30 21:32:33 +0200
commitf21f31b24be27c8eb245d47507b0f482929c5b08 (patch)
treede1950ca8ac506343e68e284127c8eaa16f68843 /src/basic/env-util.c
parent213e759ad567ce2a2fd7a9f2952cbcfbc909df9f (diff)
downloadsystemd-f21f31b24be27c8eb245d47507b0f482929c5b08.tar.gz
trivial: fix spelling in code comments
Based-on-patch-by: Rafael Fontenelle <rafaelff@gnome.org>
Diffstat (limited to 'src/basic/env-util.c')
-rw-r--r--src/basic/env-util.c4
1 files changed, 2 insertions, 2 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.
*/