diff options
| author | Anselm R. Garbe <garbeam@gmail.com> | 2007-11-24 21:27:44 +0100 |
|---|---|---|
| committer | Anselm R. Garbe <garbeam@gmail.com> | 2007-11-24 21:27:44 +0100 |
| commit | 18b2f4f34fb0ec97a77b1a5f5250e4b3e9b74959 (patch) | |
| tree | 12170916534b9f6e2f2c4267fa9325c2ef0a9845 | |
| parent | 925381bfd08c48c83b96a8da6e8ff7a11c14af33 (diff) | |
next version will be 0.8
| -rw-r--r-- | config.mk | 2 | ||||
| -rw-r--r-- | slock.c | 4 |
2 files changed, 4 insertions, 2 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | # slock version | 1 | # slock version |
| 2 | VERSION = 0.7 | 2 | VERSION = 0.8 |
| 3 | 3 | ||
| 4 | # Customize below to fit your system | 4 | # Customize below to fit your system |
| 5 | 5 | ||
| @@ -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"); |
