summaryrefslogtreecommitdiffstats
path: root/libsmartcols
diff options
context:
space:
mode:
authorSami Kerola2019-01-14 23:40:34 +0100
committerKarel Zak2019-02-18 13:22:43 +0100
commit110260830d49b1872c29af3e3fc16bdba15f7376 (patch)
tree07780a8a1db6a8f9c3ac65806d32db75ee0efd14 /libsmartcols
parentinclude/path.h: remove duplicate header inclusion (diff)
downloadkernel-qcow2-util-linux-110260830d49b1872c29af3e3fc16bdba15f7376.tar.gz
kernel-qcow2-util-linux-110260830d49b1872c29af3e3fc16bdba15f7376.tar.xz
kernel-qcow2-util-linux-110260830d49b1872c29af3e3fc16bdba15f7376.zip
docs: fix typos [codespell]
Reference: https://github.com/codespell-project/codespell Signed-off-by: Sami Kerola <kerolasa@iki.fi>
Diffstat (limited to 'libsmartcols')
-rw-r--r--libsmartcols/src/grouping.c4
-rw-r--r--libsmartcols/src/print.c2
-rw-r--r--libsmartcols/src/smartcolsP.h2
3 files changed, 4 insertions, 4 deletions
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_* */