Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/hunt/huntd remove stubbed-out function



details:   https://anonhg.NetBSD.org/src/rev/0caefe5ae1c2
branches:  trunk
changeset: 328238:0caefe5ae1c2
user:      dholland <dholland%NetBSD.org@localhost>
date:      Sat Mar 29 20:35:30 2014 +0000

description:
remove stubbed-out function

diffstat:

 games/hunt/huntd/Makefile   |   4 ++--
 games/hunt/huntd/driver.c   |  11 +++++------
 games/hunt/huntd/faketalk.c |  45 ---------------------------------------------
 3 files changed, 7 insertions(+), 53 deletions(-)

diffs (95 lines):

diff -r 5d0bf1dbe0e2 -r 0caefe5ae1c2 games/hunt/huntd/Makefile
--- a/games/hunt/huntd/Makefile Sat Mar 29 20:32:04 2014 +0000
+++ b/games/hunt/huntd/Makefile Sat Mar 29 20:35:30 2014 +0000
@@ -1,8 +1,8 @@
-#      $NetBSD: Makefile,v 1.2 2014/03/29 20:32:04 dholland Exp $
+#      $NetBSD: Makefile,v 1.3 2014/03/29 20:35:30 dholland Exp $
 
 PROG=  huntd
 SRCS=  answer.c draw.c driver.c execute.c expl.c \
-       extern.c faketalk.c makemaze.c pathname.c shots.c terminal.c
+       extern.c makemaze.c pathname.c shots.c terminal.c
 MAN=   huntd.6
 
 .include <bsd.prog.mk>
diff -r 5d0bf1dbe0e2 -r 0caefe5ae1c2 games/hunt/huntd/driver.c
--- a/games/hunt/huntd/driver.c Sat Mar 29 20:32:04 2014 +0000
+++ b/games/hunt/huntd/driver.c Sat Mar 29 20:35:30 2014 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: driver.c,v 1.26 2014/03/29 20:12:12 dholland Exp $     */
+/*     $NetBSD: driver.c,v 1.27 2014/03/29 20:35:30 dholland Exp $     */
 /*
  * Copyright (c) 1983-2003, Regents of the University of California.
  * All rights reserved.
@@ -32,7 +32,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: driver.c,v 1.26 2014/03/29 20:12:12 dholland Exp $");
+__RCSID("$NetBSD: driver.c,v 1.27 2014/03/29 20:35:30 dholland Exp $");
 #endif /* not lint */
 
 #include <sys/ioctl.h>
@@ -183,10 +183,9 @@
                }
                if (fdset[0].revents & POLLIN)
                        if (answer()) {
-#ifdef INTERNET
-                               if (first && standard_port)
-                                       faketalk();
-#endif
+                               if (first) {
+                                       /* announce start of game? */
+                               }
                                first = false;
                        }
                if (fdset[1].revents & POLLIN)
diff -r 5d0bf1dbe0e2 -r 0caefe5ae1c2 games/hunt/huntd/faketalk.c
--- a/games/hunt/huntd/faketalk.c       Sat Mar 29 20:32:04 2014 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,45 +0,0 @@
-/*     $NetBSD: faketalk.c,v 1.24 2014/03/29 20:32:04 dholland Exp $   */
-/*
- * Copyright (c) 1983-2003, Regents of the University of California.
- * All rights reserved.
- * 
- * Redistribution and use in source and binary forms, with or without 
- * modification, are permitted provided that the following conditions are 
- * met:
- * 
- * + Redistributions of source code must retain the above copyright 
- *   notice, this list of conditions and the following disclaimer.
- * + Redistributions in binary form must reproduce the above copyright 
- *   notice, this list of conditions and the following disclaimer in the 
- *   documentation and/or other materials provided with the distribution.
- * + Neither the name of the University of California, San Francisco nor 
- *   the names of its contributors may be used to endorse or promote 
- *   products derived from this software without specific prior written 
- *   permission.
- * 
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS 
- * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 
- * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-#include <sys/cdefs.h>
-#ifndef lint
-__RCSID("$NetBSD: faketalk.c,v 1.24 2014/03/29 20:32:04 dholland Exp $");
-#endif /* not lint */
-
-#include "hunt.h"
-
-void
-faketalk(void)
-{
-       return;
-}
-



Home | Main Index | Thread Index | Old Index