From d945f4960b8917aebffd18e7efa461c84ffb22db Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Sun, 18 Apr 2021 05:51:45 +0200 Subject: [PATCH] initctl: move bug report+homepage from help to version Signed-off-by: Joachim Wiberg --- src/initctl.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/initctl.c b/src/initctl.c index 674aaf18..b04e7bda 100644 --- a/src/initctl.c +++ b/src/initctl.c @@ -519,7 +519,12 @@ static int do_utmp(char *file) static int show_version(char *arg) { - puts("v" PACKAGE_VERSION); + puts(PACKAGE_STRING); + printf("Bug report address: %-40s\n", PACKAGE_BUGREPORT); +#ifdef PACKAGE_URL + printf("Project homepage: %s\n", PACKAGE_URL); +#endif + return 0; } @@ -894,11 +899,6 @@ static int usage(int rc) else fprintf(stderr, "\n"); - printf("Bug report address: %-40s\n", PACKAGE_BUGREPORT); -#ifdef PACKAGE_URL - printf("Project homepage: %s\n", PACKAGE_URL); -#endif - return rc; }