More fixup of old code.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@812 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1996-09-30 05:07:29 +00:00
parent d42f6b062a
commit aafd8f2579

View File

@@ -31,14 +31,14 @@ RCSID("$Id$");
#include "roken.h" #include "roken.h"
char inst[100]; static char name[ANAME_SZ];
char name[100]; static char inst[INST_SZ];
char realm[REALM_SZ + 1]; static char realm[REALM_SZ + 1];
#define font_height(font) (font->ascent + font->descent) #define font_height(font) (font->ascent + font->descent)
char *SPACE_STRING = " "; static char *SPACE_STRING = " ";
char STRING[] = "****************"; static char STRING[] = "****************";
#define STRING_LENGTH (sizeof(STRING)) #define STRING_LENGTH (sizeof(STRING))
#define MAX_PASSWD_LENGTH 256 #define MAX_PASSWD_LENGTH 256
@@ -56,36 +56,32 @@ char STRING[] = "****************";
#define XNLOCK_CTRL 1 #define XNLOCK_CTRL 1
#define XNLOCK_NOCTRL 0 #define XNLOCK_NOCTRL 0
#ifndef min static XtAppContext app;
#define min(x,y) (((x)<(y))?(x):(y)) static Display *dpy;
#endif static unsigned short Width, Height;
static Widget widget;
XtAppContext app; static GC gc;
Display *dpy; static XtIntervalId timeout_id;
unsigned short Width, Height; static char *ProgName, *words;
Widget widget; static int x, y;
GC gc; static Pixel Black, White;
XtIntervalId timeout_id; static XFontStruct *font;
char *ProgName, *words; static struct passwd *pw;
int x, y; static char root_pw[16];
Pixel Black, White; static int time_left, prompt_x, prompt_y, time_x, time_y;
XFontStruct *font; static unsigned long interval;
struct passwd *pw; static Pixmap left0, left1, right0, right1, left_front,
char root_pw[16];
int time_left, prompt_x, prompt_y, time_x, time_y;
unsigned long interval;
Pixmap left0, left1, right0, right1, left_front,
right_front, front, down; right_front, front, down;
#define MAXLINES 40 #define MAXLINES 40
#define IS_MOVING 1 #define IS_MOVING 1
#define GET_PASSWD 2 #define GET_PASSWD 2
int state; /* indicates states: walking or getting passwd */ static int state; /* indicates states: walking or getting passwd */
int ALLOW_LOGOUT = (60*10); /* Allow logout after nn seconds */ static int ALLOW_LOGOUT = (60*10); /* Allow logout after nn seconds */
char LOGOUT_PASSWD[] = "LOGOUT"; /* when given password "xx" */ static char LOGOUT_PASSWD[] = "LOGOUT"; /* when given password "xx" */
time_t locked_at; static time_t locked_at;
struct appres_t { struct appres_t {
Pixel bg; Pixel bg;