Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/amiga/amiga Constify parameters of matchname() to p...



details:   https://anonhg.NetBSD.org/src/rev/411ba075bf34
branches:  trunk
changeset: 581972:411ba075bf34
user:      jandberg <jandberg%NetBSD.org@localhost>
date:      Sun Jun 12 16:31:42 2005 +0000

description:
Constify parameters of matchname() to please -Wcast-qual.

diffstat:

 sys/arch/amiga/amiga/autoconf.c |  6 +++---
 sys/arch/amiga/amiga/device.h   |  4 ++--
 2 files changed, 5 insertions(+), 5 deletions(-)

diffs (45 lines):

diff -r 673ada1473e9 -r 411ba075bf34 sys/arch/amiga/amiga/autoconf.c
--- a/sys/arch/amiga/amiga/autoconf.c   Sun Jun 12 16:24:20 2005 +0000
+++ b/sys/arch/amiga/amiga/autoconf.c   Sun Jun 12 16:31:42 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: autoconf.c,v 1.93 2004/10/23 17:07:38 thorpej Exp $    */
+/*     $NetBSD: autoconf.c,v 1.94 2005/06/12 16:31:42 jandberg Exp $   */
 
 /*
  * Copyright (c) 1994 Christian E. Hopps
@@ -31,7 +31,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.93 2004/10/23 17:07:38 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: autoconf.c,v 1.94 2005/06/12 16:31:42 jandberg Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -138,7 +138,7 @@
 
 int
 matchname(fp, sp)
-       char *fp, *sp;
+       const char *fp, *sp;
 {
        int len;
 
diff -r 673ada1473e9 -r 411ba075bf34 sys/arch/amiga/amiga/device.h
--- a/sys/arch/amiga/amiga/device.h     Sun Jun 12 16:24:20 2005 +0000
+++ b/sys/arch/amiga/amiga/device.h     Sun Jun 12 16:31:42 2005 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: device.h,v 1.8 2002/04/25 09:20:28 aymeric Exp $       */
+/*     $NetBSD: device.h,v 1.9 2005/06/12 16:31:42 jandberg Exp $      */
 
 /*
  * Copyright (c) 1994 Christian E. Hopps
@@ -40,7 +40,7 @@
 void config_console(void);
 int amiga_config_found(struct cfdata *, struct device *, void *, cfprint_t );
 int simple_devprint(void *, const char *);
-int matchname(char *, char *);
+int matchname(const char *, const char *);
 /*
  * false when initing for the console.
  */



Home | Main Index | Thread Index | Old Index