Typos found by codespell

This commit is contained in:
Dimitri Papadopoulos
2021-10-20 22:20:18 +09:00
committed by Yu Watanabe
parent 231c7645ca
commit ba669952b2
26 changed files with 34 additions and 34 deletions
+1 -1
View File
@@ -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 */
}
}
+1 -1
View File
@@ -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;
}
+1 -1
View File
@@ -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]);
+2 -2
View File
@@ -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);