Module Name: src
Committed By: tsutsui
Date: Tue May 12 14:15:32 UTC 2009
Modified Files:
src/usr.sbin/grfinfo: grfinfo.c
Log Message:
Fix for -Wcast-qual.
XXX want wscons...
To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 src/usr.sbin/grfinfo/grfinfo.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/grfinfo/grfinfo.c
diff -u src/usr.sbin/grfinfo/grfinfo.c:1.8 src/usr.sbin/grfinfo/grfinfo.c:1.9
--- src/usr.sbin/grfinfo/grfinfo.c:1.8 Mon Feb 19 23:22:43 2001
+++ src/usr.sbin/grfinfo/grfinfo.c Tue May 12 14:15:31 2009
@@ -19,12 +19,12 @@
* improvements that they make and grant CSS redistribution rights.
*
* from: Utah $Hdr: grfinfo.c 1.3 94/04/04$
- * $NetBSD: grfinfo.c,v 1.8 2001/02/19 23:22:43 cgd Exp $
+ * $NetBSD: grfinfo.c,v 1.9 2009/05/12 14:15:31 tsutsui Exp $
*/
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: grfinfo.c,v 1.8 2001/02/19 23:22:43 cgd Exp $");
+__RCSID("$NetBSD: grfinfo.c,v 1.9 2009/05/12 14:15:31 tsutsui Exp $");
#endif
#include <sys/types.h>
@@ -42,7 +42,7 @@
struct grf_info {
int grf_id;
- char *grf_name;
+ const char *grf_name;
} info[] = {
{ GRFGATOR, "gatorbox" },
{ GRFBOBCAT, "topcat" },
@@ -56,7 +56,7 @@
void getinfo __P((void));
int main __P((int, char **));
void printall __P((void));
-char *tname __P((void));
+const char *tname __P((void));
void usage __P((void));
int
@@ -125,7 +125,7 @@
gi.gd_fbsize, gi.gd_fbaddr, gi.gd_fbwidth, gi.gd_fbheight);
}
-char *
+const char *
tname()
{
struct grf_info *gp;