From 49b344a2eac8891a9543623de5335586dfd464f5 Mon Sep 17 00:00:00 2001 From: abs Date: Fri, 17 Mar 2006 23:36:38 +0000 Subject: add more "ifdef notdef" around unused sections - addresses Coverity CID 564 --- hunt/hunt/otto.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'hunt') 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 #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 @@ -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 -- cgit v1.2.3-56-ge451