write version to stdout like the man page says

ref.
https://git.suckless.org/slock/commit/e8bca65d629a4faa89439c9f0e599efb5a259573.html
This commit is contained in:
bakkeby 2023-10-06 12:42:21 +02:00
parent 67f3da2d6a
commit 6020a79998

View File

@ -653,7 +653,7 @@ main(int argc, char **argv) {
#endif // MESSAGE_PATCH | COLOR_MESSAGE_PATCH #endif // MESSAGE_PATCH | COLOR_MESSAGE_PATCH
ARGBEGIN { ARGBEGIN {
case 'v': case 'v':
fprintf(stderr, "slock-"VERSION"\n"); puts("slock-"VERSION);
return 0; return 0;
#if MESSAGE_PATCH || COLOR_MESSAGE_PATCH #if MESSAGE_PATCH || COLOR_MESSAGE_PATCH
case 'm': case 'm':