diff options
author | charnier <charnier@FreeBSD.org> | 1997-10-29 07:25:05 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 1997-10-29 07:25:05 +0000 |
commit | 24e614e49c313df771b3e53f2b7e9f0babf0fff0 (patch) | |
tree | 8fc9203802250babef065ef17bdcacc1fe8f311b /usr.sbin/ypserv/yp_server.c | |
parent | 941e2045a2c71da41fadec9bfed70cb37decf91d (diff) | |
download | FreeBSD-src-24e614e49c313df771b3e53f2b7e9f0babf0fff0.zip FreeBSD-src-24e614e49c313df771b3e53f2b7e9f0babf0fff0.tar.gz |
Typos in man page. Cosmetics in error strings.
Diffstat (limited to 'usr.sbin/ypserv/yp_server.c')
-rw-r--r-- | usr.sbin/ypserv/yp_server.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/usr.sbin/ypserv/yp_server.c b/usr.sbin/ypserv/yp_server.c index 5e2ec4d..9927f6b 100644 --- a/usr.sbin/ypserv/yp_server.c +++ b/usr.sbin/ypserv/yp_server.c @@ -31,23 +31,24 @@ * */ +#ifndef lint +static const char rcsid[] = + "$Id$"; +#endif /* not lint */ + #include "yp.h" #include "yp_extern.h" -#include <stdlib.h> #include <dirent.h> +#include <errno.h> +#include <stdlib.h> #include <sys/stat.h> #include <sys/param.h> -#include <errno.h> #include <sys/types.h> #include <sys/socket.h> #include <netinet/in.h> #include <arpa/inet.h> #include <rpc/rpc.h> -#ifndef lint -static const char rcsid[] = "$Id: yp_server.c,v 1.22 1997/04/28 14:18:38 wpaul Exp $"; -#endif /* not lint */ - int forked = 0; int children = 0; @@ -167,7 +168,7 @@ ypproc_match_2_svc(ypreq_key *argp, struct svc_req *rqstp) nbuf[argp->key.keydat_len] = '\0'; if (debug) - yp_error("Doing DNS lookup of %s", nbuf); + yp_error("doing DNS lookup of %s", nbuf); if (!strcmp(argp->map, "hosts.byname")) result.stat = yp_async_lookup_name(rqstp, nbuf); @@ -664,7 +665,7 @@ static struct ypmaplist *yp_maplist_create(domain) continue; if ((cur = (struct ypmaplist *) malloc(sizeof(struct ypmaplist))) == NULL) { - yp_error("malloc() failed: %s",strerror(errno)); + yp_error("malloc() failed"); closedir(dird); yp_maplist_free(yp_maplist); return(NULL); |