diff options
author | pgen <p.gen.progs@gmail.com> | 2021-11-26 21:59:50 +0100 |
---|---|---|
committer | pgen <p.gen.progs@gmail.com> | 2021-11-26 22:13:18 +0100 |
commit | e3291743ab41f37e4c32527c8e445e129cb10fbf (patch) | |
tree | af584d1c777c0dba26da429a4909f35325b7d0d5 | |
parent | 3c5ea897b4ab66eabf523a486d2fe94f00c0b0ff (diff) |
Remove unused arguments
-rw-r--r-- | smenu.c | 22 | ||||
-rw-r--r-- | smenu.h | 11 |
2 files changed, 14 insertions, 19 deletions
@@ -142,7 +142,7 @@ int quiet_timeout = 0; /* 1 when we want no message to be displayed. */ /* Help message display. */ /* ===================== */ void -help(win_t * win, term_t * term, long last_line, toggle_t * toggles) +help(win_t * win, term_t * term, long last_line) { int index; /* used to identify the objects long the help line. */ int line = 0; /* number of windows lines used by the help line. */ @@ -434,8 +434,7 @@ apply_attr(term_t * term, attrib_t attr) /* ===================================================== */ int ini_cb(win_t * win, term_t * term, limit_t * limits, ticker_t * timers, - misc_t * misc, langinfo_t * langinfo, const char * section, - const char * name, char * value) + misc_t * misc, const char * section, const char * name, char * value) { int error = 0; int has_colors = (term->colors > 7); @@ -683,10 +682,10 @@ out: /* ======================================================================== */ int ini_load(const char * filename, win_t * win, term_t * term, limit_t * limits, - ticker_t * timers, misc_t * misc, langinfo_t * langinfo, + ticker_t * timers, misc_t * misc, int (*report)(win_t * win, term_t * term, limit_t * limits, - ticker_t * timers, misc_t * misc, langinfo_t * langinfo, - const char * section, const char * name, char * value)) + ticker_t * timers, misc_t * misc, const char * section, + const char * name, char * value)) { char name[64] = ""; char value[256] = ""; @@ -737,8 +736,7 @@ ini_load(const char * filename, win_t * win, term_t * term, limit_t * limits, /* Callback function calling. */ /* """""""""""""""""""""""""" */ - error = report(win, term, limits, timers, misc, langinfo, section, name, - value); + error = report(win, term, limits, timers, misc, section, name, value); if (error) goto out; @@ -6720,12 +6718,10 @@ main(int argc, char * argv[]) /* Set the attributes from the configuration file if possible. */ /* """"""""""""""""""""""""""""""""""""""""""""""""""""""""""" */ - if (ini_load(home_ini_file, &win, &term, &limits, &timers, &misc, &langinfo, - ini_cb)) + if (ini_load(home_ini_file, &win, &term, &limits, &timers, &misc, ini_cb)) exit(EXIT_FAILURE); - if (ini_load(local_ini_file, &win, &term, &limits, &timers, &misc, &langinfo, - ini_cb)) + if (ini_load(local_ini_file, &win, &term, &limits, &timers, &misc, ini_cb)) exit(EXIT_FAILURE); free(home_ini_file); @@ -11182,7 +11178,7 @@ main(int argc, char * argv[]) /* """""""""" */ if (search_mode == NONE) { - help(&win, &term, last_line, &toggles); + help(&win, &term, last_line); help_mode = 1; /* Arm the help timer. */ @@ -422,7 +422,7 @@ struct search_data_s /* *********** */ void -help(win_t * win, term_t * term, long last_line, toggle_t * toggles); +help(win_t * win, term_t * term, long last_line); int tag_comp(void * a, void * b); @@ -466,15 +466,14 @@ tst_cb_cli(void * elem); int ini_load(const char * filename, win_t * win, term_t * term, limit_t * limits, - ticker_t * timers, misc_t * misc, langinfo_t * langinfo, + ticker_t * timers, misc_t * misc, int (*report)(win_t * win, term_t * term, limit_t * limits, - ticker_t * timers, misc_t * misc, langinfo_t * langinfo, - const char * section, const char * name, char * value)); + ticker_t * timers, misc_t * misc, const char * section, + const char * name, char * value)); int ini_cb(win_t * win, term_t * term, limit_t * limits, ticker_t * timers, - misc_t * misc, langinfo_t * langinfo, const char * section, - const char * name, char * value); + misc_t * misc, const char * section, const char * name, char * value); char * make_ini_path(char * name, char * base); |