summaryrefslogtreecommitdiffstats
path: root/hunt
diff options
context:
space:
mode:
authorabs <abs@NetBSD.org>2006-03-17 23:36:38 +0000
committerabs <abs@NetBSD.org>2006-03-17 23:36:38 +0000
commit49b344a2eac8891a9543623de5335586dfd464f5 (patch)
tree0f15310cbf4b3f784cf41462e0bdf6f12fa86c7a /hunt
parentb78f648f0f659adc4bdcd24b61f66025174f51f6 (diff)
downloadbsdgames-darwin-49b344a2eac8891a9543623de5335586dfd464f5.tar.gz
bsdgames-darwin-49b344a2eac8891a9543623de5335586dfd464f5.tar.zst
bsdgames-darwin-49b344a2eac8891a9543623de5335586dfd464f5.zip
add more "ifdef notdef" around unused sections - addresses Coverity CID 564
Diffstat (limited to 'hunt')
-rw-r--r--hunt/hunt/otto.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/hunt/hunt/otto.c b/hunt/hunt/otto.c
index a2c97e0c..8cda1803 100644
--- a/hunt/hunt/otto.c
+++ b/hunt/hunt/otto.c
@@ -1,4 +1,4 @@
-/* $NetBSD: otto.c,v 1.8 2004/11/05 21:30:32 dsl Exp $ */
+/* $NetBSD: otto.c,v 1.9 2006/03/17 23:36:38 abs Exp $ */
# ifdef OTTO
/*
* Copyright (c) 1983-2003, Regents of the University of California.
@@ -45,7 +45,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: otto.c,v 1.8 2004/11/05 21:30:32 dsl Exp $");
+__RCSID("$NetBSD: otto.c,v 1.9 2006/03/17 23:36:38 abs Exp $");
#endif /* not lint */
# include <sys/time.h>
@@ -598,12 +598,15 @@ wander()
break;
# endif
}
+# ifdef notdef
if (dir_count == 0) {
duck(random() % NUMDIRECTIONS);
num_turns = 0;
return;
} else if (dir_count == 1)
+# endif
rel_dir = ffs(dir_mask) - 1;
+# ifdef notdef
else {
rel_dir = ffs(dir_mask) - 1;
dir_mask &= ~(1 << rel_dir);
@@ -614,6 +617,7 @@ wander()
dir_mask &= ~(1 << i);
}
}
+# endif
if (rel_dir == FRONT)
num_turns++;
else