diff options
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); |