Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/macppc/macppc First argument to OF_interpret is con...



details:   https://anonhg.NetBSD.org/src/rev/9a2566995703
branches:  trunk
changeset: 581656:9a2566995703
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Jun 03 14:35:36 2005 +0000

description:
First argument to OF_interpret is const. Remove non-ansi prototype while
here.

diffstat:

 sys/arch/macppc/macppc/autoconf.c |  13 +++----------
 1 files changed, 3 insertions(+), 10 deletions(-)

diffs (34 lines):

diff -r 62df6b87f4c5 -r 9a2566995703 sys/arch/macppc/macppc/autoconf.c
--- a/sys/arch/macppc/macppc/autoconf.c Fri Jun 03 14:28:07 2005 +0000
+++ b/sys/arch/macppc/macppc/autoconf.c Fri Jun 03 14:35:36 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.41 2004/10/23 17:07:39 thorpej Exp $    */
+/*     $NetBSD: autoconf.c,v 1.42 2005/06/03 14:35:36 christos Exp $   */
 
 /*
  * Copyright (C) 1995, 1996 Wolfgang Solfrank.
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.41 2004/10/23 17:07:39 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.42 2005/06/03 14:35:36 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/conf.h>
@@ -344,14 +344,7 @@
 }
 
 int
-#ifdef __STDC__
-OF_interpret(char *cmd, int nreturns, ...)
-#else
-OF_interpret(cmd, nreturns, va_alist)
-       char *cmd;
-       int nreturns;
-       va_dcl
-#endif
+OF_interpret(const char *cmd, int nreturns, ...)
 {
        va_list ap;
        int i;



Home | Main Index | Thread Index | Old Index