From aa52c1ef2604c2cd1d70f865885c1e3108fe2b69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Mon, 7 Apr 2008 18:51:54 +0000 Subject: [PATCH] Use unsigned where appropriate. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22889 ec53bebd-3082-4978-b11e-865c3cabbd6b --- appl/xnlock/xnlock.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/appl/xnlock/xnlock.c b/appl/xnlock/xnlock.c index 0e7d77927..c9e5309c4 100644 --- a/appl/xnlock/xnlock.c +++ b/appl/xnlock/xnlock.c @@ -409,7 +409,8 @@ think(void) static void move(XtPointer _p, XtIntervalId *_id) { - static int length, dir; + static int dir; + static unsigned int length; if (!length) { int tries = 0; @@ -705,7 +706,7 @@ GetPasswd(Widget w, XEvent *_event, String *_s, Cardinal *_n) { XKeyEvent *event = (XKeyEvent *)_event; static char passwd[MAX_PASSWD_LENGTH]; - static int cnt; + static unsigned int cnt; static int is_ctrl = XNLOCK_NOCTRL; char c; KeySym keysym; @@ -823,8 +824,9 @@ init_images(void) static void talk(int force_erase) { - int width = 0, height, Z, total = 0; - static int X, Y, talking; + unsigned int width = 0, height, Z, total = 0; + static unsigned int X, Y; + static int talking; static struct { int x, y, width, height; } s_rect; char *p, *p2; char buf[BUFSIZ], args[MAXLINES][256];