Module Name: src Committed By: he Date: Wed May 20 08:16:52 UTC 2009
Modified Files: src/usr.sbin/hilinfo: hilinfo.c Log Message: Spread some 'const' to deal without warnings with string constants. To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6 src/usr.sbin/hilinfo/hilinfo.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/hilinfo/hilinfo.c diff -u src/usr.sbin/hilinfo/hilinfo.c:1.5 src/usr.sbin/hilinfo/hilinfo.c:1.6 --- src/usr.sbin/hilinfo/hilinfo.c:1.5 Thu May 30 18:01:03 2002 +++ src/usr.sbin/hilinfo/hilinfo.c Wed May 20 08:16:52 2009 @@ -19,12 +19,12 @@ * improvements that they make and grant CSS redistribution rights. * * from: Utah $Hdr: hilinfo.c 1.3 94/04/04$ - * $NetBSD: hilinfo.c,v 1.5 2002/05/30 18:01:03 thorpej Exp $ + * $NetBSD: hilinfo.c,v 1.6 2009/05/20 08:16:52 he Exp $ */ #include <sys/cdefs.h> #ifndef lint -__RCSID("$NetBSD: hilinfo.c,v 1.5 2002/05/30 18:01:03 thorpej Exp $"); +__RCSID("$NetBSD: hilinfo.c,v 1.6 2009/05/20 08:16:52 he Exp $"); #endif #include <sys/types.h> @@ -46,7 +46,7 @@ struct hil_info { u_char hil_lo; u_char hil_hi; - char *hil_name; + const char *hil_name; } info[] = { {0xA0, 0xFF, "keyboard"}, {0x60, 0x6B, "mouse"}, @@ -58,7 +58,7 @@ int getinfo __P((void)); int main __P((int, char **)); -char *tname __P((void)); +const char *tname __P((void)); void printall __P((void)); void usage __P((void)); @@ -141,7 +141,7 @@ printf("\n"); } -char * +const char * tname() { struct hil_info *hp;