Source-Changes-HG archive

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

[src/trunk]: src/games Use __dead



details:   https://anonhg.NetBSD.org/src/rev/d909d66832ee
branches:  trunk
changeset: 768984:d909d66832ee
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon Aug 29 20:30:36 2011 +0000

description:
Use __dead

diffstat:

 games/banner/banner.c |  6 +++---
 games/dab/board.h     |  4 ++--
 games/larn/bill.c     |  6 +++---
 games/larn/extern.h   |  4 ++--
 games/ppt/ppt.c       |  9 ++++-----
 games/sail/extern.h   |  4 ++--
 games/trek/main.c     |  8 +++-----
 7 files changed, 19 insertions(+), 22 deletions(-)

diffs (179 lines):

diff -r 9c1a2df4f1f4 -r d909d66832ee games/banner/banner.c
--- a/games/banner/banner.c     Mon Aug 29 18:43:20 2011 +0000
+++ b/games/banner/banner.c     Mon Aug 29 20:30:36 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: banner.c,v 1.18 2009/08/12 05:19:27 dholland Exp $     */
+/*     $NetBSD: banner.c,v 1.19 2011/08/29 20:30:36 joerg Exp $        */
 
 /*
  * Copyright (c) 1980, 1993, 1994
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)banner.c   8.4 (Berkeley) 4/29/95";
 #else
-__RCSID("$NetBSD: banner.c,v 1.18 2009/08/12 05:19:27 dholland Exp $");
+__RCSID("$NetBSD: banner.c,v 1.19 2011/08/29 20:30:36 joerg Exp $");
 #endif
 #endif /* not lint */
 
@@ -1025,7 +1025,7 @@
 static int debug, i, j, linen, max, nchars, pc, term, trace, x, y;
 static int width = DWIDTH;     /* -w option: scrunch letters to 80 columns */
 
-static void
+__dead static void
 toolong(void)
 {
        errx(EXIT_FAILURE, "message too long");
diff -r 9c1a2df4f1f4 -r d909d66832ee games/dab/board.h
--- a/games/dab/board.h Mon Aug 29 18:43:20 2011 +0000
+++ b/games/dab/board.h Mon Aug 29 20:30:36 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: board.h,v 1.2 2008/04/28 20:22:53 martin Exp $ */
+/*     $NetBSD: board.h,v 1.3 2011/08/29 20:30:37 joerg Exp $  */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -72,7 +72,7 @@
     void games(size_t i, const PLAYER& p);             // Post games
     void total(size_t i, const PLAYER& p);             // Post totals
     void ties(const PLAYER& p);                                // Post ties
-    void abort(const char *s, ...) const;              // Algorithm error
+    __dead void abort(const char *s, ...) const;       // Algorithm error
 
 
   private:
diff -r 9c1a2df4f1f4 -r d909d66832ee games/larn/bill.c
--- a/games/larn/bill.c Mon Aug 29 18:43:20 2011 +0000
+++ b/games/larn/bill.c Mon Aug 29 20:30:36 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bill.c,v 1.10 2009/08/12 08:04:05 dholland Exp $        */
+/*     $NetBSD: bill.c,v 1.11 2011/08/29 20:30:37 joerg Exp $   */
 
 /*-
  * Copyright (c) 1991 The Regents of the University of California.
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)bill.c     5.2 (Berkeley) 5/28/91";
 #else
-__RCSID("$NetBSD: bill.c,v 1.10 2009/08/12 08:04:05 dholland Exp $");
+__RCSID("$NetBSD: bill.c,v 1.11 2011/08/29 20:30:37 joerg Exp $");
 #endif
 #endif /* not lint */
 
@@ -119,7 +119,7 @@
  */
 
 void
-mailbill()
+mailbill(void)
 {
        int    i;
        char   fname[32];
diff -r 9c1a2df4f1f4 -r d909d66832ee games/larn/extern.h
--- a/games/larn/extern.h       Mon Aug 29 18:43:20 2011 +0000
+++ b/games/larn/extern.h       Mon Aug 29 20:30:36 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: extern.h,v 1.15 2011/08/26 06:18:17 dholland Exp $     */
+/*     $NetBSD: extern.h,v 1.16 2011/08/29 20:30:37 joerg Exp $        */
 
 /*
  * Copyright (c) 1997 Christos Zoulas.  All rights reserved.
@@ -36,7 +36,7 @@
 void act_open_chest(int, int);
 
 /* bill.c */
-void mailbill(void);
+__dead void mailbill(void);
 
 /* config.c */
 
diff -r 9c1a2df4f1f4 -r d909d66832ee games/ppt/ppt.c
--- a/games/ppt/ppt.c   Mon Aug 29 18:43:20 2011 +0000
+++ b/games/ppt/ppt.c   Mon Aug 29 20:30:36 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ppt.c,v 1.18 2009/08/12 08:24:20 dholland Exp $        */
+/*     $NetBSD: ppt.c,v 1.19 2011/08/29 20:30:37 joerg Exp $   */
 
 /*
  * Copyright (c) 1988, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)ppt.c      8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: ppt.c,v 1.18 2009/08/12 08:24:20 dholland Exp $");
+__RCSID("$NetBSD: ppt.c,v 1.19 2011/08/29 20:30:37 joerg Exp $");
 #endif
 #endif /* not lint */
 
@@ -54,7 +54,7 @@
 static void putppt(int);
 static int getppt(const char *);
 
-static void
+__dead static void
 usage(void)
 {
        extern char *__progname;
@@ -127,8 +127,7 @@
 }
 
 static void
-putppt(c)
-       int c;
+putppt(int c)
 {
        int i;
 
diff -r 9c1a2df4f1f4 -r d909d66832ee games/sail/extern.h
--- a/games/sail/extern.h       Mon Aug 29 18:43:20 2011 +0000
+++ b/games/sail/extern.h       Mon Aug 29 20:30:36 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: extern.h,v 1.37 2011/08/26 06:18:18 dholland Exp $ */
+/*     $NetBSD: extern.h,v 1.38 2011/08/29 20:30:37 joerg Exp $ */
 
 /*
  * Copyright (c) 1983, 1993
@@ -358,7 +358,7 @@
 /* pl_main.c */
 void pl_main_init(void);
 void pl_main_uninit(void);
-void pl_main(void);
+__dead void pl_main(void);
 
 /* sync.c */
 void fmtship(char *, size_t, const char *, struct ship *);
diff -r 9c1a2df4f1f4 -r d909d66832ee games/trek/main.c
--- a/games/trek/main.c Mon Aug 29 18:43:20 2011 +0000
+++ b/games/trek/main.c Mon Aug 29 20:30:36 2011 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.22 2009/05/25 00:37:27 dholland Exp $       */
+/*     $NetBSD: main.c,v 1.23 2011/08/29 20:30:37 joerg Exp $  */
 
 /*
  * Copyright (c) 1980, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)main.c     8.1 (Berkeley) 5/31/93";
 #else
-__RCSID("$NetBSD: main.c,v 1.22 2009/05/25 00:37:27 dholland Exp $");
+__RCSID("$NetBSD: main.c,v 1.23 2011/08/29 20:30:37 joerg Exp $");
 #endif
 #endif /* not lint */
 
@@ -153,14 +153,12 @@
 
 jmp_buf env;
 
-static void
+__dead static void
 usage(const char *av0)
 {
        errx(1, "Usage: %s [-fs]", av0);
 }
 
-int main(int, char **);
-
 int
 main(int argc, char **argv)
 {



Home | Main Index | Thread Index | Old Index