From 615b25f5fc8682cc634257513ef3ba263c85681d Mon Sep 17 00:00:00 2001 From: PatR Date: Mon, 13 Apr 2015 17:50:17 -0700 Subject: [PATCH] lint bits --- src/files.c | 8 +++----- src/potion.c | 4 ++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/files.c b/src/files.c index cd6f735d5..8e942f757 100644 --- a/src/files.c +++ b/src/files.c @@ -1,4 +1,4 @@ -/* NetHack 3.5 files.c $NHDT-Date: 1427337311 2015/03/26 02:35:11 $ $NHDT-Branch: derek-farming $:$NHDT-Revision: 1.141 $ */ +/* NetHack 3.5 files.c $NHDT-Date: 1428972596 2015/04/14 00:49:56 $ $NHDT-Branch: master $:$NHDT-Revision: 1.164 $ */ /* NetHack 3.5 files.c $Date: 2012/03/10 02:49:08 $ $Revision: 1.124 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /* NetHack may be freely redistributed. See license for details. */ @@ -3346,10 +3346,8 @@ int tribpassage; char *endp; char line[BUFSZ]; - int scopes[4] = {0, SECTIONSCOPE, TITLESCOPE, PASSAGESCOPE}; - int scope = 0, section = 0, passage = 0, book = 0; - int linect = 0, passagecnt = 0, targetpassage = 0, textcnt = 0; - char *sectionnm = "", *booknm = ""; + int scope = 0; + int linect = 0, passagecnt = 0, targetpassage = 0; const char *badtranslation = "an incomprehensible foreign translation"; boolean matchedsection = FALSE, matchedtitle = FALSE; winid tribwin = WIN_ERR; diff --git a/src/potion.c b/src/potion.c index fbea23c7c..e669018d3 100644 --- a/src/potion.c +++ b/src/potion.c @@ -1,4 +1,4 @@ -/* NetHack 3.5 potion.c $NHDT-Date: 1426953330 2015/03/21 15:55:30 $ $NHDT-Branch: master $:$NHDT-Revision: 1.99 $ */ +/* NetHack 3.5 potion.c $NHDT-Date: 1428972597 2015/04/14 00:49:57 $ $NHDT-Branch: master $:$NHDT-Revision: 1.111 $ */ /* NetHack 3.5 potion.c $Date: 2013/11/05 00:57:55 $ $Revision: 1.91 $ */ /* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */ /* NetHack may be freely redistributed. See license for details. */ @@ -1820,7 +1820,7 @@ dodip() } if(potion->otyp == POT_ACID && obj->otyp == CORPSE && - obj->corpsenm == PM_LICHEN & !Blind) { + obj->corpsenm == PM_LICHEN && !Blind) { pline("%s %s %s around the edges.", The(cxname(obj)), otense(obj, "turn"), potion->odiluted ? hcolor(NH_ORANGE) : hcolor(NH_RED));