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 ++-- libblkid/src/probe.c | 2 +- libfdisk/samples/mkpart-fullspec.c | 2 +- libfdisk/src/alignment.c | 2 +- libfdisk/src/libfdisk.h.in | 6 +++--- libfdisk/src/script.c | 2 +- libfdisk/src/sgi.c | 2 +- libfdisk/src/utils.c | 2 +- libmount/python/tab.c | 2 +- libsmartcols/src/grouping.c | 4 ++-- libsmartcols/src/print.c | 2 +- libsmartcols/src/smartcolsP.h | 2 +- login-utils/lslogins.c | 2 +- misc-utils/logger.c | 2 +- misc-utils/lsblk.h | 2 +- misc-utils/whereis.c | 2 +- sys-utils/eject.c | 2 +- term-utils/agetty.c | 2 +- 19 files changed, 25 insertions(+), 25 deletions(-) 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; diff --git a/libblkid/src/probe.c b/libblkid/src/probe.c index 2dd87cf9a..1ace06a68 100644 --- a/libblkid/src/probe.c +++ b/libblkid/src/probe.c @@ -1161,7 +1161,7 @@ int blkid_do_probe(blkid_probe pr) * * * - * See also blkid_probe_step_back() if you cannot use this build-in wipe + * See also blkid_probe_step_back() if you cannot use this built-in wipe * function, but you want to use libblkid probing as a source for wiping. * * Returns: 0 on success, and -1 in case of error. diff --git a/libfdisk/samples/mkpart-fullspec.c b/libfdisk/samples/mkpart-fullspec.c index 8b439f7ad..2f2704d47 100644 --- a/libfdisk/samples/mkpart-fullspec.c +++ b/libfdisk/samples/mkpart-fullspec.c @@ -6,7 +6,7 @@ * * * Libfdisk sample to create partitions by specify all required partition - * properties (partno, start and size). The defauls is only partition type + * properties (partno, start and size). The default is only partition type * (except MBR where 4th partition is extended). */ #include diff --git a/libfdisk/src/alignment.c b/libfdisk/src/alignment.c index a238c7bf0..426fa938c 100644 --- a/libfdisk/src/alignment.c +++ b/libfdisk/src/alignment.c @@ -661,7 +661,7 @@ int fdisk_apply_label_device_properties(struct fdisk_context *cxt) int rc = 0; if (cxt->label && cxt->label->op->reset_alignment) { - DBG(CXT, ul_debugobj(cxt, "appling label device properties...")); + DBG(CXT, ul_debugobj(cxt, "applying label device properties...")); rc = cxt->label->op->reset_alignment(cxt); } return rc; diff --git a/libfdisk/src/libfdisk.h.in b/libfdisk/src/libfdisk.h.in index 6f5188d3f..47e778a67 100644 --- a/libfdisk/src/libfdisk.h.in +++ b/libfdisk/src/libfdisk.h.in @@ -144,7 +144,7 @@ struct fdisk_labelitem; * @FDISK_ASKTYPE_OFFSET: ask for offset * @FDISK_ASKTYPE_WARN: print warning message and errno * @FDISK_ASKTYPE_WARNX: print warning message - * @FDISK_ASKTYPE_INFO: print infor message + * @FDISK_ASKTYPE_INFO: print info message * @FDISK_ASKTYPE_YESNO: ask Yes/No question * @FDISK_ASKTYPE_STRING: ask for string * @FDISK_ASKTYPE_MENU: ask for menu item @@ -619,7 +619,7 @@ extern int fdisk_bsd_link_partition(struct fdisk_context *cxt); * @BSD_LABELITEM_TYPE: type * @BSD_LABELITEM_DISK: disk * @BSD_LABELITEM_PACKNAME: packname - * @BSD_LABELITEM_FLAGS: flags (removeable, ecc, badsect) + * @BSD_LABELITEM_FLAGS: flags (removable, ecc, badsect) * @BSD_LABELITEM_SECSIZE: Bytes/Sector * @BSD_LABELITEM_NTRACKS: Tracks/Cylinder * @BSD_LABELITEM_SECPERCYL: Sectors/Cylinder @@ -731,7 +731,7 @@ extern int fdisk_gpt_set_partition_attrs(struct fdisk_context *cxt, size_t partn * @GPT_LABELITEM_FIRSTLBA: First Usable LBA * @GPT_LABELITEM_LASTLBA: Usable LBA * @GPT_LABELITEM_ALTLBA: Alternative LBA (backup header LBA) - * @GPT_LABELITEM_ENTRIESLBA: Partitions entires array LBA + * @GPT_LABELITEM_ENTRIESLBA: Partitions entries array LBA * @GPT_LABELITEM_ENTRIESALLOC: Number of allocated entries in entries array * * GPT specific label items. diff --git a/libfdisk/src/script.c b/libfdisk/src/script.c index e7cf1254e..66be4f08c 100644 --- a/libfdisk/src/script.c +++ b/libfdisk/src/script.c @@ -254,7 +254,7 @@ const char *fdisk_script_get_header(struct fdisk_script *dp, const char *name) * and @data is specified then a new header is added. * * Note that libfdisk allows to specify arbitrary custom header, the default - * build-in headers are "unit" and "label", and some label specific headers + * built-in headers are "unit" and "label", and some label specific headers * (for example "uuid" and "name" for GPT). * * Returns: 0 on success, <0 on error diff --git a/libfdisk/src/sgi.c b/libfdisk/src/sgi.c index f38e9a09c..884e385ac 100644 --- a/libfdisk/src/sgi.c +++ b/libfdisk/src/sgi.c @@ -689,7 +689,7 @@ static int verify_disklabel(struct fdisk_context *cxt, int verbose) add_to_freelist(cxt, start, lastblock); } /* - * Done with arithmetics. Go for details now. + * Done with arithmetic. Go for details now. */ if (verbose) { if (sgi_get_bootpartition(cxt) < 0 diff --git a/libfdisk/src/utils.c b/libfdisk/src/utils.c index 115409065..6056e7f1f 100644 --- a/libfdisk/src/utils.c +++ b/libfdisk/src/utils.c @@ -162,7 +162,7 @@ char *fdisk_partname(const char *dev, size_t partno) free(res); - /* check for partition seperator "p" */ + /* check for partition separator "p" */ if (asprintf(&res, "%.*sp%zu", w, dev, partno) <= 0) res = NULL; if (res && access(res, F_OK) == 0) diff --git a/libmount/python/tab.c b/libmount/python/tab.c index 5fb7140d9..ce604dd61 100644 --- a/libmount/python/tab.c +++ b/libmount/python/tab.c @@ -281,7 +281,7 @@ static PyObject *Table_find_srcpath(TableObject *self, PyObject *args, PyObject #define Table_find_tag_HELP "find_tag(tag, val, [direction])\n\n" \ "Try to lookup an entry in given tab, first attempt is lookup by tag and\n" \ "val, for the second attempt the tag is evaluated (converted to the device\n" \ - "name) and Tab.find_srcpath() is preformed. The second attempt is not\n" \ + "name) and Tab.find_srcpath() is performed. The second attempt is not\n" \ "performed when tb cache is not set (not implemented yet).\n" \ "\n" \ "Returns a tab entry or NULL." diff --git a/libsmartcols/src/grouping.c b/libsmartcols/src/grouping.c index c5fb2cb9f..add4b748a 100644 --- a/libsmartcols/src/grouping.c +++ b/libsmartcols/src/grouping.c @@ -127,7 +127,7 @@ void scols_groups_fix_members_order(struct libscols_table *tb) groups_fix_members_order(ln); } - /* If group child is memeber of another group * + /* If group child is member of another group * scols_reset_iter(&itr, SCOLS_ITER_FORWARD); while (scols_table_next_group(tb, &itr, &gr) == 0) { struct libscols_iter xitr; @@ -224,7 +224,7 @@ static int group_state_for_line(struct libscols_group *gr, struct libscols_line */ static void grpset_apply_group_state(struct libscols_group **xx, int state, struct libscols_group *gr) { - DBG(GROUP, ul_debugobj(gr, " appling state to grpset")); + DBG(GROUP, ul_debugobj(gr, " applying state to grpset")); /* gr->state holds the old state, @state is the new state */ diff --git a/libsmartcols/src/print.c b/libsmartcols/src/print.c index 4a45b41fb..251b211c7 100644 --- a/libsmartcols/src/print.c +++ b/libsmartcols/src/print.c @@ -991,7 +991,7 @@ int __scols_initialize_printing(struct libscols_table *tb, struct libscols_buffe break; case SCOLS_FMT_JSON: if (tb->format == SCOLS_FMT_JSON) - extra_bufsz += tb->nlines * 3; /* indention */ + extra_bufsz += tb->nlines * 3; /* indentation */ /* fallthrough */ case SCOLS_FMT_EXPORT: { diff --git a/libsmartcols/src/smartcolsP.h b/libsmartcols/src/smartcolsP.h index 2bc62800d..5af5b096e 100644 --- a/libsmartcols/src/smartcolsP.h +++ b/libsmartcols/src/smartcolsP.h @@ -213,7 +213,7 @@ struct libscols_table { struct libscols_symbols *symbols; struct libscols_cell title; /* optional table title (for humans) */ - int indent; /* indention counter */ + int indent; /* indentation counter */ int indent_last_sep;/* last printed has been line separator */ int format; /* SCOLS_FMT_* */ diff --git a/login-utils/lslogins.c b/login-utils/lslogins.c index cb03272b4..c913cf2d8 100644 --- a/login-utils/lslogins.c +++ b/login-utils/lslogins.c @@ -1568,7 +1568,7 @@ int main(int argc, char *argv[]) columns[ncolumns++] = i; } else if (ncolumns == 2) { - /* default colummns */ + /* default columns */ add_column(columns, ncolumns++, COL_NPROCS); add_column(columns, ncolumns++, COL_PWDLOCK); add_column(columns, ncolumns++, COL_PWDDENY); diff --git a/misc-utils/logger.c b/misc-utils/logger.c index 394a477db..d6cee8287 100644 --- a/misc-utils/logger.c +++ b/misc-utils/logger.c @@ -1282,7 +1282,7 @@ int main(int argc, char **argv) } #endif - /* user overwrites build-in SD-ELEMENT */ + /* user overwrites built-in SD-ELEMENT */ if (has_structured_data_id(get_user_structured_data(&ctl), "timeQuality")) ctl.rfc5424_tq = 0; diff --git a/misc-utils/lsblk.h b/misc-utils/lsblk.h index a043e7fd7..e15c5b42a 100644 --- a/misc-utils/lsblk.h +++ b/misc-utils/lsblk.h @@ -131,7 +131,7 @@ struct lsblk_device { #define device_is_partition(_x) ((_x)->wholedisk != NULL) /* - * Note that lsblk tree uses botton devices (devices without slaves) as root + * Note that lsblk tree uses bottom devices (devices without slaves) as root * of the tree, and partitions are interpreted as a dependence too; it means: * sda -> sda1 -> md0 * diff --git a/misc-utils/whereis.c b/misc-utils/whereis.c index c598d494e..2d4c58125 100644 --- a/misc-utils/whereis.c +++ b/misc-utils/whereis.c @@ -547,7 +547,7 @@ int main(int argc, char **argv) lookup(arg, ls, want); /* * The lookup mask ("want") is cumulative and it's - * resetable only when it has been already used. + * resettable only when it has been already used. * * whereis -b -m foo :'foo' mask=BIN|MAN * whereis -b foo bar :'foo' and 'bar' mask=BIN|MAN diff --git a/sys-utils/eject.c b/sys-utils/eject.c index 8196b60dd..81cd2bcff 100644 --- a/sys-utils/eject.c +++ b/sys-utils/eject.c @@ -444,7 +444,7 @@ static void toggle_tray(int fd) struct timeval time_start, time_stop; int time_elapsed; - /* Try to open the CDROM tray and measure the time therefor + /* Try to open the CDROM tray and measure the time therefore * needed. In my experience the function needs less than 0.05 * seconds if the tray was already open, and at least 1.5 seconds * if it was closed. */ diff --git a/term-utils/agetty.c b/term-utils/agetty.c index fc373847e..1a3ebc308 100644 --- a/term-utils/agetty.c +++ b/term-utils/agetty.c @@ -1284,7 +1284,7 @@ static void termio_init(struct options *op, struct termios *tp) * later on. */ - /* The defaul is set c_iflag in termio_final() according to chardata. + /* The default is set c_iflag in termio_final() according to chardata. * Unfortunately, the chardata are not set according to the serial line * if --autolog is enabled. In this case we do not read from the line * at all. The best what we can do in this case is to keep c_iflag -- cgit v1.2.3-55-g7522