Module Name: src
Committed By: mlelstv
Date: Sun Apr 26 19:24:18 UTC 2009
Modified Files:
src/usr.sbin/grfconfig: grfconfig.c
Log Message:
don't discard const qualifiers
To generate a diff of this commit:
cvs rdiff -u -r1.13 -r1.14 src/usr.sbin/grfconfig/grfconfig.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.sbin/grfconfig/grfconfig.c
diff -u src/usr.sbin/grfconfig/grfconfig.c:1.13 src/usr.sbin/grfconfig/grfconfig.c:1.14
--- src/usr.sbin/grfconfig/grfconfig.c:1.13 Mon Jul 21 13:36:58 2008
+++ src/usr.sbin/grfconfig/grfconfig.c Sun Apr 26 19:24:18 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: grfconfig.c,v 1.13 2008/07/21 13:36:58 lukem Exp $ */
+/* $NetBSD: grfconfig.c,v 1.14 2009/04/26 19:24:18 mlelstv Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
#endif /* not lint */
#ifndef lint
-__RCSID("$NetBSD: grfconfig.c,v 1.13 2008/07/21 13:36:58 lukem Exp $");
+__RCSID("$NetBSD: grfconfig.c,v 1.14 2009/04/26 19:24:18 mlelstv Exp $");
#endif /* not lint */
#include <sys/file.h>
@@ -55,7 +55,7 @@
static struct grf_flag {
u_short grf_flag_number;
- char *grf_flag_name;
+ const char *grf_flag_name;
} grf_flags[] = {
{GRF_FLAGS_DBLSCAN, "doublescan"},
{GRF_FLAGS_LACE, "interlace"},
@@ -87,7 +87,7 @@
char buf[_POSIX2_LINE_MAX];
char *cps[31];
char *p;
- char *errortext;
+ const char *errortext;
while ((c = getopt(ac, av, "rt")) != -1) {