From 6c1d0e4d60b239e9533def6feaf8eb2138858c3e Mon Sep 17 00:00:00 2001 From: Connor Lane Smith Date: Thu, 24 Jun 2010 14:22:34 +0100 Subject: fixed offsets, updated eprint, cleaned up --- dinput.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'dinput.c') diff --git a/dinput.c b/dinput.c index d8f2515..15f5e26 100644 --- a/dinput.c +++ b/dinput.c @@ -164,7 +164,7 @@ kpress(XKeyEvent * e) { FILE *fp; char *s; if(!(fp = popen("sselp", "r"))) - eprint("dinput: cannot popen sselp\n"); + eprint("cannot popen sselp\n"); s = fgets(buf, sizeof buf, fp); pclose(fp); if(s == NULL) @@ -322,6 +322,7 @@ main(int argc, char *argv[]) { Bool topbar = True; /* command line args */ + progname = argv[0]; for(i = 1; i < argc; i++) if(!strcmp(argv[i], "-b")) topbar = False; @@ -356,7 +357,7 @@ main(int argc, char *argv[]) { if(!setlocale(LC_CTYPE, "") || !XSupportsLocale()) fprintf(stderr, "dinput: warning: no locale support\n"); if(!(dpy = XOpenDisplay(NULL))) - eprint("dinput: cannot open display\n"); + eprint("cannot open display\n"); screen = DefaultScreen(dpy); if(!parent) parent = RootWindow(dpy, screen); -- cgit v1.2.3-13-gbd6f