summaryrefslogtreecommitdiff
path: root/manual/examples
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1993-05-28 22:54:15 +0000
committerRoland McGrath <roland@gnu.org>1993-05-28 22:54:15 +0000
commit688bda481eb77b9ff3dfb18bdb2d67cc0ba67452 (patch)
tree60b6be078c701b6370c27953f614c45b0f37e4c5 /manual/examples
parent2e8ce22fabe0b9a34f86b365f2ee71409c03e54f (diff)
Change bogus variable SERVERHOST to HOSTNAME.
Diffstat (limited to 'manual/examples')
-rw-r--r--manual/examples/isockad.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/manual/examples/isockad.c b/manual/examples/isockad.c
index 730bc8dbd7..54ec1cca4c 100644
--- a/manual/examples/isockad.c
+++ b/manual/examples/isockad.c
@@ -6,13 +6,14 @@
void
init_sockaddr (struct sockaddr_in *name,
- const char *hostname, unsigned short int port)
+ const char *hostname,
+ unsigned short int port)
{
struct hostent *hostinfo;
name->sin_family = AF_INET;
name->sin_port = htons (port);
- hostinfo = gethostbyname (serverhost);
+ hostinfo = gethostbyname (hostname);
if (hostinfo == NULL)
{
fprintf (stderr, "Unknown host %s.\n", hostname);