diff options
| author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2023-10-08 20:51:07 +0200 |
|---|---|---|
| committer | Tobias Stoeckmann <tobias@stoeckmann.org> | 2023-10-08 20:51:07 +0200 |
| commit | 970f3e5a31cabcd0e9f7df4d9a90721020517a82 (patch) | |
| tree | 5c81d932bcea0063b01524faf9bded53ef318ce2 /lib/path.c | |
| parent | 8e58a3f11da4f5ed6c0c149489ff149496d63168 (diff) | |
| download | util-linux-970f3e5a31cabcd0e9f7df4d9a90721020517a82.tar.gz | |
lib/path: fix typos
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Diffstat (limited to 'lib/path.c')
| -rw-r--r-- | lib/path.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/path.c b/lib/path.c index 1e4f36a56e..c878d2d962 100644 --- a/lib/path.c +++ b/lib/path.c @@ -483,7 +483,7 @@ FILE *ul_path_fopenf(struct path_cxt *pc, const char *mode, const char *path, .. } /* - * Open directory @path in read-onl mode. If the path is NULL then duplicate FD + * Open directory @path in read-only mode. If the path is NULL then duplicate FD * to the directory addressed by @pc. */ DIR *ul_path_opendir(struct path_cxt *pc, const char *path) @@ -517,7 +517,7 @@ DIR *ul_path_opendir(struct path_cxt *pc, const char *path) /* - * Open directory @path in read-onl mode. If the path is NULL then duplicate FD + * Open directory @path in read-only mode. If the path is NULL then duplicate FD * to the directory addressed by @pc. */ DIR *ul_path_vopendirf(struct path_cxt *pc, const char *path, va_list ap) @@ -528,7 +528,7 @@ DIR *ul_path_vopendirf(struct path_cxt *pc, const char *path, va_list ap) } /* - * Open directory @path in read-onl mode. If the path is NULL then duplicate FD + * Open directory @path in read-only mode. If the path is NULL then duplicate FD * to the directory addressed by @pc. */ DIR *ul_path_opendirf(struct path_cxt *pc, const char *path, ...) @@ -644,7 +644,7 @@ int ul_path_read_string(struct path_cxt *pc, char **str, const char *path) if (rc < 0) return rc; - /* Remove tailing newline (usual in sysfs) */ + /* Remove trailing newline (usual in sysfs) */ if (rc > 0 && *(buf + rc - 1) == '\n') --rc; if (rc == 0) @@ -678,7 +678,7 @@ int ul_path_read_buffer(struct path_cxt *pc, char *buf, size_t bufsz, const char buf[0] = '\0'; else if (rc > 0) { - /* Remove tailing newline (usual in sysfs) */ + /* Remove trailing newline (usual in sysfs) */ if (*(buf + rc - 1) == '\n') buf[--rc] = '\0'; else @@ -975,7 +975,7 @@ int ul_path_countf_dirents(struct path_cxt *pc, const char *path, ...) return !p ? -errno : ul_path_count_dirents(pc, p); } -/* first call (when @sub is NULL) opens the directory, last call closes the diretory */ +/* first call (when @sub is NULL) opens the directory, last call closes the directory */ int ul_path_next_dirent(struct path_cxt *pc, DIR **sub, const char *dirname, struct dirent **d) { if (!pc || !sub || !d) |
