diff --git a/awesome.c b/awesome.c index d03e74d1..0516c14e 100644 --- a/awesome.c +++ b/awesome.c @@ -382,7 +382,7 @@ main(int argc, char **argv) switch(opt) { case 'v': - eprint_version("awesome"); + eprint_version(); break; case 'h': exit_help(EXIT_SUCCESS); diff --git a/common/version.c b/common/version.c index f6474c2e..15ab41b3 100644 --- a/common/version.c +++ b/common/version.c @@ -30,12 +30,11 @@ * \param executable program name */ void -eprint_version(const char *const executable) +eprint_version(void) { - printf("%s (awesome) " AWESOME_VERSION + printf("awesome " AWESOME_VERSION " (" AWESOME_RELEASE ")\n" - " • Build:", - executable); + " • Build:"); #if defined(__DATE__) && defined(__TIME__) printf(" " __DATE__ " " __TIME__); #endif diff --git a/common/version.h b/common/version.h index d6c1ad5d..bee63163 100644 --- a/common/version.h +++ b/common/version.h @@ -22,6 +22,6 @@ #ifndef AWESOME_COMMON_VERSION_H #define AWESOME_COMMON_VERSION_H -void eprint_version(const char *const executable) __attribute__ ((noreturn)); +void eprint_version(void) __attribute__ ((noreturn)); #endif