From cd3357325e748bf8efeea83375da958d891cd81e Mon Sep 17 00:00:00 2001 From: pgen Date: Wed, 30 Jun 2021 19:42:46 +0200 Subject: Cosmetic --- index.c | 2 +- smenu.c | 6 +++--- utils.c | 2 +- utils.h | 6 +++--- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/index.c b/index.c index c1e3f1e..26b12a8 100644 --- a/index.c +++ b/index.c @@ -169,7 +169,7 @@ tst_fuzzy_traverse(tst_node_t * p, int (*callback)(void *), int first_call, w1s[0] = p->splitchar; w2s[0] = w; - if (xwcscasecmp(w1s, w2s) == 0) + if (my_wcscasecmp(w1s, w2s) == 0) { ll_node_t * node; sub_tst_t * sub_tst_data; diff --git a/smenu.c b/smenu.c index aefb630..7d4dabb 100644 --- a/smenu.c +++ b/smenu.c @@ -6307,7 +6307,7 @@ main(int argc, char * argv[]) long message_max_len = 0; /* max number of bytes taken by a message * | line. */ - char * int_string = NULL; /* String to be output when typing ^C. */ + char * int_string = NULL; /* String to be output when typing ^C. */ int int_as_in_shell = 1; /* CTRL-C mimics the shell behaviour. */ FILE * input_file; /* The name of the file passed as argument if any. */ @@ -6644,7 +6644,7 @@ main(int argc, char * argv[]) free(home_ini_file); free(local_ini_file); - /* Command line options setting using ctxopt. */ + /* Command line option settings using ctxopt. */ /* """""""""""""""""""""""""""""""""""""""""" */ ctxopt_init(argv[0], "stop_if_non_option=No " "allow_abbreviations=No " @@ -6687,7 +6687,7 @@ main(int argc, char * argv[]) "[visual_bell] " "[ignore_quotes] " "[incremental_search] " - "[limits #limit:value...] "; /* keep the last space! */ + "[limits #limit:value...] "; /* don't remove this space! */ main_spec_options = "[*version] " "[*long_help] " diff --git a/utils.c b/utils.c index bbddb9a..20dc355 100644 --- a/utils.c +++ b/utils.c @@ -298,7 +298,7 @@ isprint8(int i) /* Private implementation of wcscasecmp missing in c99. */ /* ==================================================== */ int -xwcscasecmp(const wchar_t * s1, const wchar_t * s2) +my_wcscasecmp(const wchar_t * s1, const wchar_t * s2) { wchar_t c1, c2; diff --git a/utils.h b/utils.h index 4519ad0..741795f 100644 --- a/utils.h +++ b/utils.h @@ -6,8 +6,8 @@ #ifndef UTILS_H #define UTILS_H -# include -# include +#include +#include typedef struct interval_s interval_t; typedef struct range_s range_t; @@ -63,7 +63,7 @@ int isprint8(int i); int -xwcscasecmp(const wchar_t * w1s, const wchar_t * w2s); +my_wcscasecmp(const wchar_t * w1s, const wchar_t * w2s); int is_integer(const char * const s); -- cgit v1.2.3