From e0d54638074bed7e29ddcae5282e163be93562e7 Mon Sep 17 00:00:00 2001 From: abs Date: Fri, 17 Mar 2006 23:36:38 +0000 Subject: [PATCH] add more "ifdef notdef" around unused sections - addresses Coverity CID 564 --- games/hunt/hunt/otto.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/games/hunt/hunt/otto.c b/games/hunt/hunt/otto.c index a2c97e0c489d..8cda18034944 100644 --- a/games/hunt/hunt/otto.c +++ b/games/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