From c58716809cde8697469f7a88f1b8d6a01bd62d13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Thu, 10 Aug 2017 19:55:29 +0200 Subject: [PATCH] core: remove unneeded argument in call to string_fprintf --- src/core/weechat.c | 6 +++--- 1 file 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)