From 9004110016d8371b67b590c6e446c45afb24b04c Mon Sep 17 00:00:00 2001 From: Hiltjo Posthuma Date: Fri, 6 Oct 2023 11:50:11 +0200 Subject: write version to stdout like the man page says --- slock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slock.c b/slock.c index 5ae738c..b2f14e3 100644 --- a/slock.c +++ b/slock.c @@ -317,7 +317,7 @@ main(int argc, char **argv) { ARGBEGIN { case 'v': - fprintf(stderr, "slock-"VERSION"\n"); + puts("slock-"VERSION); return 0; default: usage(); -- cgit v1.2.3