aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config.mk2
-rw-r--r--slock.c4
2 files changed, 4 insertions, 2 deletions
diff --git a/config.mk b/config.mk
index 6dbd4c4..345475c 100644
--- a/config.mk
+++ b/config.mk
@@ -1,5 +1,5 @@
1# slock version 1# slock version
2VERSION = 0.7 2VERSION = 0.8
3 3
4# Customize below to fit your system 4# Customize below to fit your system
5 5
diff --git a/slock.c b/slock.c
index a7f79d9..af5d206 100644
--- a/slock.c
+++ b/slock.c
@@ -69,8 +69,10 @@ main(int argc, char **argv) {
69 XEvent ev; 69 XEvent ev;
70 XSetWindowAttributes wa; 70 XSetWindowAttributes wa;
71 71
72 if((argc > 1) && !strncmp(argv[1], "-v", 3)) 72 if((argc == 2) && !strcmp("-v", argv[1]))
73 eprint("slock-"VERSION", © 2006-2007 Anselm R. Garbe, Sander van Dijk\n"); 73 eprint("slock-"VERSION", © 2006-2007 Anselm R. Garbe, Sander van Dijk\n");
74 else if(argc != 1)
75 eprint("usage: slock [-v]\n");
74 pws = get_password(); 76 pws = get_password();
75 if(!(dpy = XOpenDisplay(0))) 77 if(!(dpy = XOpenDisplay(0)))
76 eprint("slock: cannot open display\n"); 78 eprint("slock: cannot open display\n");