diff options
author | 2014-03-11 07:41:10 +0000 | |
---|---|---|
committer | 2014-03-11 07:41:10 +0000 | |
commit | be932af245751bc85512f83c2f2173169d86a5c7 (patch) | |
tree | e8bf10ae57025932ded845dfd8ec7c0317b29d36 | |
parent | Synchronize the i386 and amd64 ddb disassemblers and add support (diff) | |
download | wireguard-openbsd-be932af245751bc85512f83c2f2173169d86a5c7.tar.xz wireguard-openbsd-be932af245751bc85512f83c2f2173169d86a5c7.zip |
lint is dead (long live the lint!)
-rw-r--r-- | games/hack/hack.c | 6 | ||||
-rw-r--r-- | games/hack/hack.mon.c | 5 | ||||
-rw-r--r-- | games/hack/hack.pri.c | 5 | ||||
-rw-r--r-- | games/hack/hack.save.c | 10 |
4 files changed, 4 insertions, 22 deletions
diff --git a/games/hack/hack.c b/games/hack/hack.c index 881bca4b702..30b8b203508 100644 --- a/games/hack/hack.c +++ b/games/hack/hack.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hack.c,v 1.8 2009/10/27 23:59:25 deraadt Exp $ */ +/* $OpenBSD: hack.c,v 1.9 2014/03/11 07:41:10 guenther Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -540,10 +540,6 @@ lookaround() int corrct = 0, noturn = 0; struct monst *mtmp; -#ifdef lint - /* suppress "used before set" message */ - x0 = y0 = 0; -#endif /* lint */ if (Blind || flags.run == 0) return; if (flags.run == 1 && levl[(int)u.ux][(int)u.uy].typ == ROOM) return; diff --git a/games/hack/hack.mon.c b/games/hack/hack.mon.c index 07c2a7eb664..4ecc68e20cf 100644 --- a/games/hack/hack.mon.c +++ b/games/hack/hack.mon.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hack.mon.c,v 1.8 2009/10/27 23:59:25 deraadt Exp $ */ +/* $OpenBSD: hack.mon.c,v 1.9 2014/03/11 07:41:10 guenther Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -726,9 +726,6 @@ unstuck(struct monst *mtmp) void killed(struct monst *mtmp) { -#ifdef lint -#define NEW_SCORING -#endif /* lint */ int tmp, nk, x, y; struct permonst *mdat; diff --git a/games/hack/hack.pri.c b/games/hack/hack.pri.c index 18336998c32..b915e65317a 100644 --- a/games/hack/hack.pri.c +++ b/games/hack/hack.pri.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hack.pri.c,v 1.10 2009/10/27 23:59:25 deraadt Exp $ */ +/* $OpenBSD: hack.pri.c,v 1.11 2014/03/11 07:41:10 guenther Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -231,13 +231,10 @@ setclipped() void at(xchar x, xchar y, char ch) { -#ifndef lint - /* if xchar is unsigned, lint will complain about if(x < 0) */ if(x < 0 || x > COLNO-1 || y < 0 || y > ROWNO-1) { impossible("At gets 0%o at %d %d.", ch, x, y); return; } -#endif /* lint */ if(!ch) { impossible("At gets null at %d %d.", x, y); return; diff --git a/games/hack/hack.save.c b/games/hack/hack.save.c index 9daac9936bb..204bfee6da0 100644 --- a/games/hack/hack.save.c +++ b/games/hack/hack.save.c @@ -1,4 +1,4 @@ -/* $OpenBSD: hack.save.c,v 1.9 2009/10/27 23:59:25 deraadt Exp $ */ +/* $OpenBSD: hack.save.c,v 1.10 2014/03/11 07:41:10 guenther Exp $ */ /* * Copyright (c) 1985, Stichting Centrum voor Wiskunde en Informatica, @@ -239,10 +239,6 @@ restobjchn(int fd) struct obj *otmp, *otmp2; struct obj *first = 0; int xl; -#ifdef lint - /* suppress "used before set" warning from lint */ - otmp2 = 0; -#endif /* lint */ while(1) { mread(fd, (char *) &xl, sizeof(xl)); if(xl == -1) break; @@ -273,10 +269,6 @@ restmonchn(int fd) mread(fd, (char *)&monbegin, sizeof(monbegin)); differ = (char *)(&mons[0]) - (char *)(monbegin); -#ifdef lint - /* suppress "used before set" warning from lint */ - mtmp2 = 0; -#endif /* lint */ while(1) { mread(fd, (char *) &xl, sizeof(xl)); if(xl == -1) break; |