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 --- 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 +- 6 files changed, 8 insertions(+), 8 deletions(-) (limited to 'libfdisk') 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) -- cgit v1.2.3-55-g7522