From 6020a799985f0accc3d820a3b15ad560803a70cd Mon Sep 17 00:00:00 2001 From: bakkeby Date: Fri, 6 Oct 2023 12:42:21 +0200 Subject: [PATCH] write version to stdout like the man page says ref. https://git.suckless.org/slock/commit/e8bca65d629a4faa89439c9f0e599efb5a259573.html --- slock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slock.c b/slock.c index 8130954b12a22d4091f58bd45780082b8b3cc02e..50cadaf185e509553ce2b141eedd4e3c9bd1f6bb 100644 --- a/slock.c +++ b/slock.c @@ -653,7 +653,7 @@ main(int argc, char **argv) { #endif // MESSAGE_PATCH | COLOR_MESSAGE_PATCH ARGBEGIN { case 'v': - fprintf(stderr, "slock-"VERSION"\n"); + puts("slock-"VERSION); return 0; #if MESSAGE_PATCH || COLOR_MESSAGE_PATCH case 'm':