diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2017-08-10 19:55:29 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2017-08-10 19:55:29 +0200 |
commit | c58716809cde8697469f7a88f1b8d6a01bd62d13 (patch) | |
tree | 85fb915a9f343e9f07d9bc19472ee7e87c8bd4c3 /src/core | |
parent | 6cc16a40d171beb82988f44950438fdd781486ed (diff) | |
download | weechat-c58716809cde8697469f7a88f1b8d6a01bd62d13.zip |
core: remove unneeded argument in call to string_fprintf
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/weechat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/weechat.c b/src/core/weechat.c index e749781a8..59a06a1da 100644 --- a/src/core/weechat.c +++ b/src/core/weechat.c @@ -131,13 +131,13 @@ weechat_display_copyright () */ void -weechat_display_usage (char *exec_name) +weechat_display_usage () { weechat_display_copyright (); string_fprintf (stdout, "\n"); string_fprintf (stdout, _("Usage: %s [option...] [plugin:option...]\n"), - exec_name, exec_name); + weechat_argv0); string_fprintf (stdout, "\n"); string_fprintf ( stdout, @@ -208,7 +208,7 @@ weechat_parse_args (int argc, char *argv[]) else if ((strcmp (argv[i], "-h") == 0) || (strcmp (argv[i], "--help") == 0)) { - weechat_display_usage (argv[0]); + weechat_display_usage (); weechat_shutdown (EXIT_SUCCESS, 0); } else if ((strcmp (argv[i], "-l") == 0) |