From 110260830d49b1872c29af3e3fc16bdba15f7376 Mon Sep 17 00:00:00 2001 From: Sami Kerola Date: Mon, 14 Jan 2019 22:40:34 +0000 Subject: docs: fix typos [codespell] Reference: https://github.com/codespell-project/codespell Signed-off-by: Sami Kerola --- lib/loopdev.c | 6 +++--- lib/path.c | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'lib') diff --git a/lib/loopdev.c b/lib/loopdev.c index a57650cb5..2b6ecea4d 100644 --- a/lib/loopdev.c +++ b/lib/loopdev.c @@ -363,7 +363,7 @@ int loopcxt_deinit_iterator(struct loopdev_cxt *lc) /* * Same as loopcxt_set_device, but also checks if the device is - * associeted with any file. + * associated with any file. * * Returns: <0 on error, 0 on success, 1 device does not match with * LOOPITER_FL_{USED,FREE} flags. @@ -692,7 +692,7 @@ char *loopcxt_get_backing_file(struct loopdev_cxt *lc) if (sysfs) /* - * This is always preffered, the loop_info64 + * This is always preferred, the loop_info64 * has too small buffer for the filename. */ ul_path_read_string(sysfs, &res, "loop/backing_file"); @@ -1776,7 +1776,7 @@ char *loopdev_find_by_backing_file(const char *filename, uint64_t offset, uint64 /* * Returns number of loop devices associated with @file, if only one loop - * device is associeted with the given @filename and @loopdev is not NULL then + * device is associated with the given @filename and @loopdev is not NULL then * @loopdev returns name of the device. */ int loopdev_count_by_backing_file(const char *filename, char **loopdev) diff --git a/lib/path.c b/lib/path.c index 9dfdc94f8..e2e26c22c 100644 --- a/lib/path.c +++ b/lib/path.c @@ -585,7 +585,7 @@ int ul_path_read_string(struct path_cxt *pc, char **str, const char *path) if (rc < 0 || !str) return rc;; - /* Remove tailing newline (usuall in sysfs) */ + /* Remove tailing newline (usual in sysfs) */ if (rc > 0 && *(buf + rc - 1) == '\n') --rc; @@ -618,7 +618,7 @@ int ul_path_read_buffer(struct path_cxt *pc, char *buf, size_t bufsz, const char if (rc < 0) return rc;; - /* Remove tailing newline (usuall in sysfs) */ + /* Remove tailing newline (usual in sysfs) */ if (rc > 0 && *(buf + rc - 1) == '\n') --rc; -- cgit v1.2.3-55-g7522