Fix version reporting in -h and -v.

This commit is contained in:
Kevin Pulo 2021-02-08 16:30:56 +11:00
parent 30a32cce3a
commit 2fd0a7de93

View File

@ -510,13 +510,13 @@ int main(int argc, char *argv[]) {
configfile = optarg;
break;
case 'h':
printf("i3status " VERSION " © 2008 Michael Stapelberg and contributors\n"
printf("i3status " I3STATUS_VERSION " © 2008 Michael Stapelberg and contributors\n"
"Syntax: %s [-c <configfile>] [-h] [-v]\n",
argv[0]);
return 0;
break;
case 'v':
printf("i3status " VERSION " © 2008 Michael Stapelberg and contributors\n"
printf("i3status " I3STATUS_VERSION " © 2008 Michael Stapelberg and contributors\n"
#if HAS_PULSEAUDIO
"Built with pulseaudio support\n"
#else