From 75dd7792456d9eb4a4c3142b81fbda5ca39a3a51 Mon Sep 17 00:00:00 2001 From: Anselm R Garbe Date: Tue, 29 Jul 2008 19:14:53 +0100 Subject: prepared release --- slock.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'slock.c') diff --git a/slock.c b/slock.c index d576c0b..6f2e8af 100644 --- a/slock.c +++ b/slock.c @@ -22,7 +22,7 @@ #include #endif -void +static void die(const char *errstr, ...) { va_list ap; @@ -33,7 +33,7 @@ die(const char *errstr, ...) { } #ifndef HAVE_BSD_AUTH -const char * +static const char * get_password() { /* only run as root */ const char *rval; struct passwd *pw; @@ -132,11 +132,12 @@ main(int argc, char **argv) { if(ev.type == KeyPress) { buf[0] = 0; num = XLookupString(&ev.xkey, buf, sizeof buf, &ksym, 0); - if(IsKeypadKey(ksym)) + if(IsKeypadKey(ksym)) { if(ksym == XK_KP_Enter) ksym = XK_Return; else if(ksym >= XK_KP_0 && ksym <= XK_KP_9) ksym = (ksym - XK_KP_0) + XK_0; + } if(IsFunctionKey(ksym) || IsKeypadKey(ksym) || IsMiscFunctionKey(ksym) || IsPFKey(ksym) || IsPrivateKeypadKey(ksym)) -- cgit v1.2.3-70-g09d2