From 9e93004171eb0c4c288051b2d7bb37f97a0ae430 Mon Sep 17 00:00:00 2001 From: Sebastian Rasmussen Date: Sun, 29 May 2016 23:11:53 +0200 Subject: misc: Fix various typos Fix various typos in error messages, warnings, debug strings, comments and names of static functions. Signed-off-by: Sebastian Rasmussen --- libsmartcols/samples/continuous.c | 6 +++--- libsmartcols/samples/title.c | 6 +++--- libsmartcols/samples/tree.c | 6 +++--- libsmartcols/samples/wrap.c | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) (limited to 'libsmartcols/samples') diff --git a/libsmartcols/samples/continuous.c b/libsmartcols/samples/continuous.c index 02efd5de9..6cd8b489c 100644 --- a/libsmartcols/samples/continuous.c +++ b/libsmartcols/samples/continuous.c @@ -40,7 +40,7 @@ static void setup_columns(struct libscols_table *tb) return; fail: scols_unref_table(tb); - err(EXIT_FAILURE, "faild to create output columns"); + err(EXIT_FAILURE, "failed to create output columns"); } static struct libscols_line *add_line(struct libscols_table *tb, size_t i) @@ -62,7 +62,7 @@ static struct libscols_line *add_line(struct libscols_table *tb, size_t i) return ln; fail: scols_unref_table(tb); - err(EXIT_FAILURE, "faild to create output line"); + err(EXIT_FAILURE, "failed to create output line"); } int main(int argc, char *argv[]) @@ -75,7 +75,7 @@ int main(int argc, char *argv[]) tb = scols_new_table(); if (!tb) - err(EXIT_FAILURE, "faild to create output table"); + err(EXIT_FAILURE, "failed to create output table"); setup_columns(tb); gettimeofday(&last, NULL); diff --git a/libsmartcols/samples/title.c b/libsmartcols/samples/title.c index ec72093cc..2cf4f8aba 100644 --- a/libsmartcols/samples/title.c +++ b/libsmartcols/samples/title.c @@ -33,7 +33,7 @@ static void setup_columns(struct libscols_table *tb) return; fail: scols_unref_table(tb); - err(EXIT_FAILURE, "faild to create output columns"); + err(EXIT_FAILURE, "failed to create output columns"); } static void add_line(struct libscols_table *tb, const char *name, const char *data) @@ -49,7 +49,7 @@ static void add_line(struct libscols_table *tb, const char *name, const char *da return; fail: scols_unref_table(tb); - err(EXIT_FAILURE, "faild to create output line"); + err(EXIT_FAILURE, "failed to create output line"); } int main(int argc, char *argv[]) @@ -64,7 +64,7 @@ int main(int argc, char *argv[]) tb = scols_new_table(); if (!tb) - err(EXIT_FAILURE, "faild to create output table"); + err(EXIT_FAILURE, "failed to create output table"); scols_table_enable_colors(tb, 1); setup_columns(tb); diff --git a/libsmartcols/samples/tree.c b/libsmartcols/samples/tree.c index d2afc4717..868c456e4 100644 --- a/libsmartcols/samples/tree.c +++ b/libsmartcols/samples/tree.c @@ -39,7 +39,7 @@ static void setup_columns(struct libscols_table *tb, int notree) return; fail: scols_unref_table(tb); - err(EXIT_FAILURE, "faild to create output columns"); + err(EXIT_FAILURE, "failed to create output columns"); } /* add a new line to @tb, the content is based on @st */ @@ -104,7 +104,7 @@ fail: return -1; } -/* read all entrines from directory addressed by @fd */ +/* read all entries from directory addressed by @fd */ static int add_children(struct libscols_table *tb, struct libscols_line *ln, int fd) @@ -180,7 +180,7 @@ int main(int argc, char *argv[]) tb = scols_new_table(); if (!tb) - err(EXIT_FAILURE, "faild to create output table"); + err(EXIT_FAILURE, "failed to create output table"); while((c = getopt_long(argc, argv, "ciJlnprS:E:", longopts, NULL)) != -1) { switch(c) { diff --git a/libsmartcols/samples/wrap.c b/libsmartcols/samples/wrap.c index 96cdff31c..1da4c011b 100644 --- a/libsmartcols/samples/wrap.c +++ b/libsmartcols/samples/wrap.c @@ -39,7 +39,7 @@ static void setup_columns(struct libscols_table *tb) return; fail: scols_unref_table(tb); - err(EXIT_FAILURE, "faild to create output columns"); + err(EXIT_FAILURE, "failed to create output columns"); } static char *gen_text(const char *prefix, const char *sub_prefix, char *buf, size_t sz) @@ -76,7 +76,7 @@ static struct libscols_line * add_line( struct libscols_table *tb, return ln; fail: scols_unref_table(tb); - err(EXIT_FAILURE, "faild to create output line"); + err(EXIT_FAILURE, "failed to create output line"); } int main(int argc, char *argv[]) @@ -90,7 +90,7 @@ int main(int argc, char *argv[]) tb = scols_new_table(); if (!tb) - err(EXIT_FAILURE, "faild to create output table"); + err(EXIT_FAILURE, "failed to create output table"); scols_table_enable_colors(tb, 1); setup_columns(tb); -- cgit v1.2.3-55-g7522