Module Name: src
Committed By: lukem
Date: Tue Apr 14 08:00:48 UTC 2009
Modified Files:
src/usr.bin/whois: whois.c
Log Message:
fix -Wcast-qual issues
To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/usr.bin/whois/whois.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/whois/whois.c
diff -u src/usr.bin/whois/whois.c:1.33 src/usr.bin/whois/whois.c:1.34
--- src/usr.bin/whois/whois.c:1.33 Mon Jul 21 14:19:28 2008
+++ src/usr.bin/whois/whois.c Tue Apr 14 08:00:48 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: whois.c,v 1.33 2008/07/21 14:19:28 lukem Exp $ */
+/* $NetBSD: whois.c,v 1.34 2009/04/14 08:00:48 lukem Exp $ */
/* $OpenBSD: whois.c,v 1.28 2003/09/18 22:16:15 fgsch Exp $ */
/*
@@ -41,7 +41,7 @@
#if 0
static const char sccsid[] = "@(#)whois.c 8.1 (Berkeley) 6/6/93";
#else
-__RCSID("$NetBSD: whois.c,v 1.33 2008/07/21 14:19:28 lukem Exp $");
+__RCSID("$NetBSD: whois.c,v 1.34 2009/04/14 08:00:48 lukem Exp $");
#endif
#endif /* not lint */
@@ -88,13 +88,13 @@
static void usage(void) __dead;
static int whois(const char *, const char *, const char *, int);
-static char *choose_server(const char *, const char *);
+static const char *choose_server(const char *, const char *);
int
main(int argc, char *argv[])
{
int ch, flags, rval;
- char *host, *name, *country;
+ const char *host, *name, *country;
#ifdef SOCKS
SOCKSinit(argv[0]);
@@ -288,7 +288,7 @@
* (starts with '!') or a CORE handle (COCO-[0-9]+ or COHO-[0-9]+).
* Fall back to NICHOST for the non-handle case.
*/
-static char *
+static const char *
choose_server(const char *name, const char *country)
{
static char *server;