commit e8bca65d629a4faa89439c9f0e599efb5a259573
Author:     Hiltjo Posthuma <[email protected]>
AuthorDate: Fri Oct 6 11:50:11 2023 +0200
Commit:     Hiltjo Posthuma <[email protected]>
CommitDate: Fri Oct 6 11:50:11 2023 +0200

    write version to stdout like the man page says

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();

Reply via email to