summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1999-01-07 03:43:01 +0000
committerJim Meyering <jim@meyering.net>1999-01-07 03:43:01 +0000
commit955e21bb838f9675c2951caabaf6ab94c0e51d78 (patch)
tree89543f13042f4dd203610e5abc6dd2d60211b4fc /lib
parent29547b55e4685635cd4ff2b15983af506c3967af (diff)
downloadcoreutils-955e21bb838f9675c2951caabaf6ab94c0e51d78.tar.xz
protoize
Diffstat (limited to 'lib')
-rw-r--r--lib/canon-host.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/canon-host.c b/lib/canon-host.c
index 39d878911..db195385f 100644
--- a/lib/canon-host.c
+++ b/lib/canon-host.c
@@ -1,6 +1,6 @@
/* Host name canonicalization
- Copyright (C) 1995 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1999 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.ai.mit.edu>
@@ -46,8 +46,7 @@
/* Returns the canonical hostname associated with HOST (allocated in a static
buffer), or 0 if it can't be determined. */
char *
-canon_host (host)
- char *host;
+canon_host (const char *host)
{
#ifdef HAVE_GETHOSTBYNAME
struct hostent *he = gethostbyname (host);