Module Name:    src
Committed By:   lukem
Date:           Sun Apr 12 14:28:30 UTC 2009

Modified Files:
        src/usr.bin/mkstr: mkstr.c

Log Message:
fix -Wcast-qual issue


To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/usr.bin/mkstr/mkstr.c

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

Modified files:

Index: src/usr.bin/mkstr/mkstr.c
diff -u src/usr.bin/mkstr/mkstr.c:1.12 src/usr.bin/mkstr/mkstr.c:1.13
--- src/usr.bin/mkstr/mkstr.c:1.12	Mon Jul 21 14:19:24 2008
+++ src/usr.bin/mkstr/mkstr.c	Sun Apr 12 14:28:30 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: mkstr.c,v 1.12 2008/07/21 14:19:24 lukem Exp $	*/
+/*	$NetBSD: mkstr.c,v 1.13 2009/04/12 14:28:30 lukem Exp $	*/
 
 /*
  * Copyright (c) 1980, 1993
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)mkstr.c	8.1 (Berkeley) 6/6/93";
 #else
-__RCSID("$NetBSD: mkstr.c,v 1.12 2008/07/21 14:19:24 lukem Exp $");
+__RCSID("$NetBSD: mkstr.c,v 1.13 2009/04/12 14:28:30 lukem Exp $");
 #endif
 #endif /* not lint */
 
@@ -83,7 +83,7 @@
 
 void process __P((void));
 int main __P((int, char **));
-int match __P((char *));
+int match __P((const char *));
 int octdigit __P((char));
 void inithash __P((void));
 int hashit __P((char *, char, unsigned));
@@ -151,9 +151,9 @@
 
 int
 match(ocp)
-	char *ocp;
+	const char *ocp;
 {
-	char *cp;
+	const char *cp;
 	int c;
 
 	for (cp = ocp + 1; *cp; cp++) {

Reply via email to