diff options
Diffstat (limited to 'usr.sbin/ypserv/yp_server.c')
-rw-r--r-- | usr.sbin/ypserv/yp_server.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.sbin/ypserv/yp_server.c b/usr.sbin/ypserv/yp_server.c index 27a1279..f32a983 100644 --- a/usr.sbin/ypserv/yp_server.c +++ b/usr.sbin/ypserv/yp_server.c @@ -45,7 +45,7 @@ #include <rpc/rpc.h> #ifndef lint -static char rcsid[] = "$Id: yp_server.c,v 1.5 1996/04/26 04:35:53 wpaul Exp wpaul $"; +static const char rcsid[] = "$Id: yp_server.c,v 1.9 1996/04/28 04:38:52 wpaul Exp $"; #endif /* not lint */ int forked = 0; @@ -54,10 +54,6 @@ DB *spec_dbp = NULL; /* Special global DB handle for ypproc_all. */ char *master_string = "YP_MASTER_NAME"; char *order_string = "YP_LAST_MODIFIED"; -#define YP_ALL_TIMEOUT 10 - -static int yp_all_timed_out = 0; - /* * NIS v2 support. This is where most of the action happens. */ @@ -646,7 +642,7 @@ static struct ypmaplist *yp_maplist_create(domain) !S_ISREG(statbuf.st_mode)) continue; if ((cur = (struct ypmaplist *) - malloc(sizeof(struct ypmaplist))) < 0) { + malloc(sizeof(struct ypmaplist))) == NULL) { yp_error("malloc() failed: %s",strerror(errno)); closedir(dird); yp_maplist_free(yp_maplist); |