diff options
author | Anselm R. Garbe <arg@10kloc.org> | 2006-10-12 09:33:38 +0200 |
---|---|---|
committer | Anselm R. Garbe <arg@10kloc.org> | 2006-10-12 09:33:38 +0200 |
commit | 597d0f27f53cf152edd1c230def4fd7983ac5919 (patch) | |
tree | 3f4e215d3287e39ed3e33cdd22cf83e923562706 /slock.c | |
parent | 0f1157d7e6cabe0394ffc35a0a58a30507af8ebd (diff) | |
download | slock-597d0f27f53cf152edd1c230def4fd7983ac5919.tar.gz slock-597d0f27f53cf152edd1c230def4fd7983ac5919.tar.xz |
applied Salmi's patch
Diffstat (limited to 'slock.c')
-rw-r--r-- | slock.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,7 +1,7 @@ /* (C)opyright MMIV-MMV Anselm R. Garbe <garbeam at gmail dot com> * See LICENSE file for license details. */ -#define _XOPEN_SOURCE +#define _XOPEN_SOURCE 500 #if HAVE_SHADOW_H #include <shadow.h> @@ -9,6 +9,7 @@ #include <pwd.h> #endif +#include <ctype.h> #include <stdlib.h> #include <stdio.h> #include <string.h> @@ -22,13 +23,13 @@ int main(int argc, char **argv) { char curs[] = {0, 0, 0, 0, 0, 0, 0, 0}; char buf[32], passwd[256]; - int num, prev_nitem, screen; + int num, screen; #if HAVE_SHADOW_H struct spwd *sp; #else struct passwd *pw; #endif - unsigned int i, len; + unsigned int len; Bool running = True; Cursor invisible; Display *dpy; |