summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--share/doc/psd/20.ipctut/dgramsend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/doc/psd/20.ipctut/dgramsend.c b/share/doc/psd/20.ipctut/dgramsend.c
index 909f71d..3b8c750 100644
--- a/share/doc/psd/20.ipctut/dgramsend.c
+++ b/share/doc/psd/20.ipctut/dgramsend.c
@@ -61,13 +61,13 @@ main(argc, argv)
}
/*
* Construct name, with no wildcards, of the socket to send to.
- * Getnostbyname() returns a structure including the network address
+ * Gethostbyname() returns a structure including the network address
* of the specified host. The port number is taken from the command
* line.
*/
hp = gethostbyname(argv[1]);
if (hp == 0) {
- fprintf(stderr, "%s: unknown host\n", argv[1]);
+ fprintf(stderr, "%s: unknown host\\n", argv[1]);
exit(2);
}
bcopy(hp->h_addr, &name.sin_addr, hp->h_length);
OpenPOWER on IntegriCloud