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; configfile = optarg;
break; break;
case 'h': 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", "Syntax: %s [-c <configfile>] [-h] [-v]\n",
argv[0]); argv[0]);
return 0; return 0;
break; break;
case 'v': case 'v':
printf("i3status " VERSION " © 2008 Michael Stapelberg and contributors\n" printf("i3status " I3STATUS_VERSION " © 2008 Michael Stapelberg and contributors\n"
#if HAS_PULSEAUDIO #if HAS_PULSEAUDIO
"Built with pulseaudio support\n" "Built with pulseaudio support\n"
#else #else