Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/gen adjust to constification.



details:   https://anonhg.NetBSD.org/src/rev/a8f2cd382a42
branches:  trunk
changeset: 565923:a8f2cd382a42
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Apr 23 14:47:23 2004 +0000

description:
adjust to constification.

diffstat:

 lib/libc/gen/disklabel.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (32 lines):

diff -r 17ac264deb84 -r a8f2cd382a42 lib/libc/gen/disklabel.c
--- a/lib/libc/gen/disklabel.c  Fri Apr 23 14:46:31 2004 +0000
+++ b/lib/libc/gen/disklabel.c  Fri Apr 23 14:47:23 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: disklabel.c,v 1.30 2003/08/07 16:42:47 agc Exp $       */
+/*     $NetBSD: disklabel.c,v 1.31 2004/04/23 14:47:23 christos Exp $  */
 
 /*
  * Copyright (c) 1983, 1987, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)disklabel.c        8.2 (Berkeley) 5/3/95";
 #else
-__RCSID("$NetBSD: disklabel.c,v 1.30 2003/08/07 16:42:47 agc Exp $");
+__RCSID("$NetBSD: disklabel.c,v 1.31 2004/04/23 14:47:23 christos Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -66,11 +66,11 @@
 #endif
 static int     gettype __P((char *, const char *const *));
 
-static char    *db_array[2] = { _PATH_DISKTAB, 0 };
+static const char *db_array[2] = { _PATH_DISKTAB, 0 };
 
 int
 setdisktab(name)
-       char *name;
+       const char *name;
 {
        if (!name || !*name)
                return -1;



Home | Main Index | Thread Index | Old Index