projects
/
gnulib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
988b250
)
protoize
author
Jim Meyering
<jim@meyering.net>
Thu, 7 Jan 1999 03:43:01 +0000
(
03:43
+0000)
committer
Jim Meyering
<jim@meyering.net>
Thu, 7 Jan 1999 03:43:01 +0000
(
03:43
+0000)
lib/canon-host.c
patch
|
blob
|
history
diff --git
a/lib/canon-host.c
b/lib/canon-host.c
index
39d8789
..
db19538
100644
(file)
--- a/
lib/canon-host.c
+++ b/
lib/canon-host.c
@@
-1,6
+1,6
@@
/* Host name canonicalization
/* 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>
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 *
/* 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);
{
#ifdef HAVE_GETHOSTBYNAME
struct hostent *he = gethostbyname (host);