summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/basic/dirent-util.c2
-rw-r--r--src/basic/fileio.c2
-rw-r--r--src/basic/hmac.h2
-rw-r--r--src/basic/recurse-dir.c4
-rw-r--r--src/boot/efi/cpio.c2
-rw-r--r--src/boot/efi/initrd.c4
-rw-r--r--src/boot/efi/linux.c2
-rw-r--r--src/core/bpf-lsm.c2
-rw-r--r--src/home/homed-home.c2
-rw-r--r--src/home/homework-luks.c2
-rw-r--r--src/network/networkctl.c2
-rw-r--r--src/network/networkd-util.h4
-rw-r--r--src/nspawn/nspawn-oci.c2
-rw-r--r--src/shared/import-util.c2
-rw-r--r--src/sysext/sysext.c2
-rw-r--r--src/test/test-kbd-util.c2
16 files changed, 19 insertions, 19 deletions
diff --git a/src/basic/dirent-util.c b/src/basic/dirent-util.c
index d578e6836d..2eea228c20 100644
--- a/src/basic/dirent-util.c
+++ b/src/basic/dirent-util.c
@@ -88,7 +88,7 @@ struct dirent *readdir_ensure_type(DIR *d) {
return NULL;
}
- /* Vanished by now? Then skip immedately to next */
+ /* Vanished by now? Then skip immediately to next */
}
}
diff --git a/src/basic/fileio.c b/src/basic/fileio.c
index 09c72830c2..8d92da327e 100644
--- a/src/basic/fileio.c
+++ b/src/basic/fileio.c
@@ -166,7 +166,7 @@ int write_string_stream_ts(
* it won't be equal to the new value. */
if (read_virtual_file_fd(fd, strlen(line)+1, &t, NULL) > 0 &&
streq_skip_trailing_chars(line, t, NEWLINE)) {
- log_debug("No change in value '%s', supressing write", line);
+ log_debug("No change in value '%s', suppressing write", line);
return 0;
}
diff --git a/src/basic/hmac.h b/src/basic/hmac.h
index 12b594c09b..a5682c439f 100644
--- a/src/basic/hmac.h
+++ b/src/basic/hmac.h
@@ -8,5 +8,5 @@
/* Unoptimized implementation based on FIPS 198. 'res' has to be allocated by
* the caller. Prefer external OpenSSL functions, and use this only when
- * linking to OpenSSL is not desireable (eg: libsystemd.so). */
+ * linking to OpenSSL is not desirable (eg: libsystemd.so). */
void hmac_sha256(const void *key, size_t key_size, const void *input, size_t input_size, uint8_t res[static SHA256_DIGEST_SIZE]);
diff --git a/src/basic/recurse-dir.c b/src/basic/recurse-dir.c
index 309e921185..86018c8d29 100644
--- a/src/basic/recurse-dir.c
+++ b/src/basic/recurse-dir.c
@@ -42,7 +42,7 @@ int readdir_all(int dir_fd,
* array with readdir_all_freep(). */
/* Only if 64bit off_t is enabled struct dirent + struct dirent64 are actually the same. We require
- * this, and we want them to be interchangable, hence verify that. */
+ * this, and we want them to be interchangeable, hence verify that. */
assert_cc(_FILE_OFFSET_BITS == 64);
assert_cc(sizeof(struct dirent) == sizeof(struct dirent64));
assert_cc(offsetof(struct dirent, d_ino) == offsetof(struct dirent64, d_ino));
@@ -273,7 +273,7 @@ int recurse_dir(
if (S_ISDIR(sx.stx_mode)) {
/* What? It's a directory now? Then someone must have quickly
* replaced it. Let's handle that gracefully: convert it to a
- * directory fd — which sould be riskless now that we pinned the
+ * directory fd — which should be riskless now that we pinned the
* inode. */
subdir_fd = openat(AT_FDCWD, FORMAT_PROC_FD_PATH(inode_fd), O_DIRECTORY|O_CLOEXEC);
diff --git a/src/boot/efi/cpio.c b/src/boot/efi/cpio.c
index bffe4f638c..bb7c988031 100644
--- a/src/boot/efi/cpio.c
+++ b/src/boot/efi/cpio.c
@@ -43,7 +43,7 @@ static CHAR8* pad4(CHAR8 *p, const CHAR8* start) {
assert(start);
assert(p >= start);
- /* Appends NUL bytes to 'p', until the address is divisable by 4, when taken relative to 'start' */
+ /* Appends NUL bytes to 'p', until the address is divisible by 4, when taken relative to 'start' */
while ((p - start) % 4 != 0)
*(p++) = 0;
diff --git a/src/boot/efi/initrd.c b/src/boot/efi/initrd.c
index b302743adf..4475a3d5ee 100644
--- a/src/boot/efi/initrd.c
+++ b/src/boot/efi/initrd.c
@@ -80,9 +80,9 @@ EFI_STATUS initrd_register(
if (!initrd_address || initrd_length == 0)
return EFI_SUCCESS;
- /* check if a LINUX_INITRD_MEDIA_GUID DevicePath is already registed.
+ /* check if a LINUX_INITRD_MEDIA_GUID DevicePath is already registered.
LocateDevicePath checks for the "closest DevicePath" and returns its handle,
- where as InstallMultipleProtocolInterfaces only maches identical DevicePaths.
+ where as InstallMultipleProtocolInterfaces only matches identical DevicePaths.
*/
err = BS->LocateDevicePath(&EfiLoadFile2Protocol, &dp, &handle);
if (err != EFI_NOT_FOUND) /* InitrdMedia is already registered */
diff --git a/src/boot/efi/linux.c b/src/boot/efi/linux.c
index f86fcc1143..c20ddbdfc6 100644
--- a/src/boot/efi/linux.c
+++ b/src/boot/efi/linux.c
@@ -145,7 +145,7 @@ EFI_STATUS linux_exec(
/* Linux kernel complains if it's not loaded at a properly aligned memory address. The correct alignment
is provided by Linux as the SegmentAlignment in the PeOptionalHeader. Additionally the kernel needs to
- be in a memory segment thats SizeOfImage (again from PeOptionalHeader) large, so that the Kernel has
+ be in a memory segment that's SizeOfImage (again from PeOptionalHeader) large, so that the Kernel has
space for its BSS section. SizeOfImage is always larger than linux_length, which is only the size of
Code, (static) Data and Headers.
diff --git a/src/core/bpf-lsm.c b/src/core/bpf-lsm.c
index 46c2446849..ed35cad91d 100644
--- a/src/core/bpf-lsm.c
+++ b/src/core/bpf-lsm.c
@@ -368,7 +368,7 @@ int lsm_bpf_parse_filesystem(
case -ENOMEM:
return flags & FILESYSTEM_PARSE_LOG ? log_oom() : -ENOMEM;
case -EEXIST:
- /* Alredy in set, ignore */
+ /* Already in set, ignore */
break;
default:
return r;
diff --git a/src/home/homed-home.c b/src/home/homed-home.c
index d8f192650e..ccd99e3c9d 100644
--- a/src/home/homed-home.c
+++ b/src/home/homed-home.c
@@ -440,7 +440,7 @@ static void home_start_retry_deactivate(Home *h) {
assert(h);
assert(h->manager);
- /* Alrady allocated? */
+ /* Already allocated? */
if (h->retry_deactivate_event_source)
return;
diff --git a/src/home/homework-luks.c b/src/home/homework-luks.c
index 05e2950b4b..e0b7279c71 100644
--- a/src/home/homework-luks.c
+++ b/src/home/homework-luks.c
@@ -1073,7 +1073,7 @@ static int lock_image_fd(int image_fd, const char *ip) {
if (fstat(image_fd, &st) < 0)
return log_error_errno(errno, "Failed to stat image file: %m");
if (S_ISBLK(st.st_mode)) {
- /* Locking block devices doesn't really make sense, as this might interfear with
+ /* Locking block devices doesn't really make sense, as this might interfere with
* udev's workings, and these locks aren't network propagated anyway, hence not what
* we are after here. */
log_debug("Not locking image file '%s', since it's a block device.", ip);
diff --git a/src/network/networkctl.c b/src/network/networkctl.c
index 32332ac0ba..0ec01dc11e 100644
--- a/src/network/networkctl.c
+++ b/src/network/networkctl.c
@@ -2872,7 +2872,7 @@ static int help(void) {
" --no-pager Do not pipe output into a pager\n"
" --no-legend Do not show the headers and footers\n"
" -a --all Show status for all links\n"
- " -s --stats Show detailed link statics\n"
+ " -s --stats Show detailed link statistics\n"
" -l --full Do not ellipsize output\n"
" -n --lines=INTEGER Number of journal entries to show\n"
" --json=pretty|short|off\n"
diff --git a/src/network/networkd-util.h b/src/network/networkd-util.h
index 21e8a93629..6318b91118 100644
--- a/src/network/networkd-util.h
+++ b/src/network/networkd-util.h
@@ -34,12 +34,12 @@ typedef enum NetworkConfigSource {
typedef enum NetworkConfigState {
NETWORK_CONFIG_STATE_PROBING = 1 << 0, /* address is probing by IPv4ACD */
NETWORK_CONFIG_STATE_REQUESTING = 1 << 1, /* request is queued */
- NETWORK_CONFIG_STATE_CONFIGURING = 1 << 2, /* e.g. address_configure() is called, but no responce is received yet */
+ NETWORK_CONFIG_STATE_CONFIGURING = 1 << 2, /* e.g. address_configure() is called, but no response is received yet */
NETWORK_CONFIG_STATE_CONFIGURED = 1 << 3, /* e.g. address_configure() is called and received a response from kernel.
* Note that address may not be ready yet, so please use address_is_ready()
* to check whether the address can be usable or not. */
NETWORK_CONFIG_STATE_MARKED = 1 << 4, /* used GC'ing the old config */
- NETWORK_CONFIG_STATE_REMOVING = 1 << 5, /* e.g. address_remove() is called, but no responce is received yet */
+ NETWORK_CONFIG_STATE_REMOVING = 1 << 5, /* e.g. address_remove() is called, but no response is received yet */
} NetworkConfigState;
CONFIG_PARSER_PROTOTYPE(config_parse_link_local_address_family);
diff --git a/src/nspawn/nspawn-oci.c b/src/nspawn/nspawn-oci.c
index 1db69b4512..9912c5acbb 100644
--- a/src/nspawn/nspawn-oci.c
+++ b/src/nspawn/nspawn-oci.c
@@ -48,7 +48,7 @@
* should escaping be applied when joining mount options with ","?
* devices cgroup support is bogus, "allow" and "deny" on the kernel level is about adding/removing entries, not about access
* spec needs to say that "rwm" devices cgroup combination can't be the empty string
- * cgrouspv1 crap: kernel, kernelTCP, swapiness, disableOOMKiller, swap, devices, leafWeight
+ * cgrouspv1 crap: kernel, kernelTCP, swappiness, disableOOMKiller, swap, devices, leafWeight
* general: it shouldn't leak lower level abstractions this obviously
* unmanagable cgroups stuff: realtimeRuntime/realtimePeriod
* needs to say what happense when some option is not specified, i.e. which defaults apply
diff --git a/src/shared/import-util.c b/src/shared/import-util.c
index bb1e5136a7..97d39ee047 100644
--- a/src/shared/import-util.c
+++ b/src/shared/import-util.c
@@ -90,7 +90,7 @@ int import_url_change_suffix(
/* This drops the specified number of path components of the specified URI, i.e. the specified number
* of non-empty substring between two "/" characters from the end of the string, and then append the
* specified suffix instead. Before doing all this it chops off the "Query" and "Fragment" suffixes
- * (they are *not* readded to the final URL). Note that n_drop_components may be 0 (in which case the
+ * (they are *not* re-added to the final URL). Note that n_drop_components may be 0 (in which case the
* component are simply added to the end). The suffix may be specified as NULL or empty string in
* which case nothing is appended, only the specified number of components chopped off. Note that the
* function may be called with n_drop_components == 0 and suffix == NULL, in which case the "Query"
diff --git a/src/sysext/sysext.c b/src/sysext/sysext.c
index 509cb9bf31..b1f10e1eae 100644
--- a/src/sysext/sysext.c
+++ b/src/sysext/sysext.c
@@ -591,7 +591,7 @@ static int merge_subprocess(Hashmap *images, const char *workspace) {
continue;
}
- /* Noice! This one is an extension we want. */
+ /* Nice! This one is an extension we want. */
r = strv_extend(&extensions, img->name);
if (r < 0)
return log_oom();
diff --git a/src/test/test-kbd-util.c b/src/test/test-kbd-util.c
index c7b4b842c0..f15cff4794 100644
--- a/src/test/test-kbd-util.c
+++ b/src/test/test-kbd-util.c
@@ -15,7 +15,7 @@ int main(int argc, char *argv[]) {
r = get_keymaps(&maps);
if (r < 0) {
- log_error_errno(r, "Failed to aquire keymaps: %m");
+ log_error_errno(r, "Failed to acquire keymaps: %m");
return 0;
}