Module Name:    src
Committed By:   joerg
Date:           Mon Aug 29 14:50:27 UTC 2011

Modified Files:
        src/bin/sh: arith.y

Log Message:
Mark yyerror as static and __dead.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/bin/sh/arith.y

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/bin/sh/arith.y
diff -u src/bin/sh/arith.y:1.20 src/bin/sh/arith.y:1.21
--- src/bin/sh/arith.y:1.20	Sat Jun 18 21:18:46 2011
+++ src/bin/sh/arith.y	Mon Aug 29 14:50:27 2011
@@ -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;

Reply via email to