summaryrefslogtreecommitdiff
path: root/src/basic
diff options
context:
space:
mode:
authorLuca Boccassi <bluca@debian.org>2023-04-20 22:02:17 +0100
committerGitHub <noreply@github.com>2023-04-20 22:02:17 +0100
commit21453b8b4bfb4d1fa3efd1df3fe1208d48cbd41b (patch)
tree6043cd8b7de78763aa7355625829523108340079 /src/basic
parent08c2f9c626e0f0052d505b1b7e52f335c0fbfa1d (diff)
parent7c782513e58ca038343cb7b104360d6088a06cb3 (diff)
downloadsystemd-21453b8b4bfb4d1fa3efd1df3fe1208d48cbd41b.tar.gz
Merge pull request #27349 from mrc0mmand/codespell
tree-wide: code spelling fixes
Diffstat (limited to 'src/basic')
-rw-r--r--src/basic/macro.h2
-rw-r--r--src/basic/mountpoint-util.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/basic/macro.h b/src/basic/macro.h
index 2770d01aa9..99262e9206 100644
--- a/src/basic/macro.h
+++ b/src/basic/macro.h
@@ -431,7 +431,7 @@ assert_cc(sizeof(dummy_t) == 0);
})
/* Iterate through each variadic arg. All must be the same type as 'entry' or must be implicitly
- * convertable. The iteration variable 'entry' must already be defined. */
+ * convertible. The iteration variable 'entry' must already be defined. */
#define VA_ARGS_FOREACH(entry, ...) \
_VA_ARGS_FOREACH(entry, UNIQ_T(_entries_, UNIQ), UNIQ_T(_current_, UNIQ), ##__VA_ARGS__)
#define _VA_ARGS_FOREACH(entry, _entries_, _current_, ...) \
diff --git a/src/basic/mountpoint-util.c b/src/basic/mountpoint-util.c
index e28ca825b3..7237930a76 100644
--- a/src/basic/mountpoint-util.c
+++ b/src/basic/mountpoint-util.c
@@ -95,7 +95,7 @@ int name_to_handle_at_loop(
/* The buffer was too small. Size the new buffer by what name_to_handle_at() returned. */
n = h->handle_bytes;
- /* paranoia: check for overlow (note that .handle_bytes is unsigned only) */
+ /* paranoia: check for overflow (note that .handle_bytes is unsigned only) */
if (n > UINT_MAX - offsetof(struct file_handle, f_handle))
return -EOVERFLOW;
}
@@ -724,7 +724,7 @@ int mount_option_supported(const char *fstype, const char *key, const char *valu
_cleanup_close_ int fd = -EBADF;
int r;
- /* Checks if the specified file system supports a mount option. Returns > 0 if it suppors it, == 0 if
+ /* Checks if the specified file system supports a mount option. Returns > 0 if it supports it, == 0 if
* it does not. Return -EAGAIN if we can't determine it. And any other error otherwise. */
assert(fstype);