Source-Changes-HG archive

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

[src/trunk]: src/bin/sh Mark yyerror as static and __dead.



details:   https://anonhg.NetBSD.org/src/rev/9fa8d54d042f
branches:  trunk
changeset: 768967:9fa8d54d042f
user:      joerg <joerg%NetBSD.org@localhost>
date:      Mon Aug 29 14:50:27 2011 +0000

description:
Mark yyerror as static and __dead.

diffstat:

 bin/sh/arith.y |  11 +++++------
 1 files changed, 5 insertions(+), 6 deletions(-)

diffs (40 lines):

diff -r f99bd41d2551 -r 9fa8d54d042f bin/sh/arith.y
--- a/bin/sh/arith.y    Mon Aug 29 14:47:47 2011 +0000
+++ b/bin/sh/arith.y    Mon Aug 29 14:50:27 2011 +0000
@@ -1,5 +1,5 @@
 %{
-/*     $NetBSD: arith.y,v 1.20 2011/06/18 21:18:46 christos Exp $      */
+/*     $NetBSD: arith.y,v 1.21 2011/08/29 14:50:27 joerg Exp $ */
 
 /*-
  * Copyright (c) 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)arith.y    8.3 (Berkeley) 5/4/95";
 #else
-__RCSID("$NetBSD: arith.y,v 1.20 2011/06/18 21:18:46 christos Exp $");
+__RCSID("$NetBSD: arith.y,v 1.21 2011/08/29 14:50:27 joerg Exp $");
 #endif
 #endif /* not lint */
 
@@ -56,7 +56,7 @@
 intmax_t arith_result;
 const char *arith_buf, *arith_startbuf;
 
-void yyerror(const char *);
+__dead static void yyerror(const char *);
 #ifdef TESTARITH
 int main(int , char *[]);
 int error(char *);
@@ -197,9 +197,8 @@
 }
 #endif
 
-void
-yyerror(s)
-       const char *s;
+static void
+yyerror(const char *s)
 {
 
        yyerrok;



Home | Main Index | Thread Index | Old Index