summaryrefslogtreecommitdiff
path: root/manual/examples
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1992-11-09 23:59:20 +0000
committerRoland McGrath <roland@gnu.org>1992-11-09 23:59:20 +0000
commitffcd9a6808b82801fbf01cd4283577ed2a565786 (patch)
tree56341f1d0e99b7a0dab59957258715e9f34b8e58 /manual/examples
parentff6b98f7ec726491dc6045fb81e7109cd48fab79 (diff)
Fixed usage of args.
Diffstat (limited to 'manual/examples')
-rw-r--r--manual/examples/isockad.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/manual/examples/isockad.c b/manual/examples/isockad.c
index d5e289b95f..730bc8dbd7 100644
--- a/manual/examples/isockad.c
+++ b/manual/examples/isockad.c
@@ -11,9 +11,9 @@ init_sockaddr (struct sockaddr_in *name,
struct hostent *hostinfo;
name->sin_family = AF_INET;
- name->sin_port = htons (PORT);
- hostinfo = gethostbyname (SERVERHOST);
- if (!hostinfo)
+ name->sin_port = htons (port);
+ hostinfo = gethostbyname (serverhost);
+ if (hostinfo == NULL)
{
fprintf (stderr, "Unknown host %s.\n", hostname);
exit (EXIT_FAILURE);