cat and puste errors

This commit is contained in:
Barry Warsaw 1996-12-11 01:00:46 +00:00
parent 3696c524a4
commit 1abda0fb12
1 changed files with 5 additions and 2 deletions

View File

@ -294,9 +294,12 @@ nis_maplist ()
CLIENT *cl, *clnt_create(); CLIENT *cl, *clnt_create();
char *server = ""; char *server = "";
int mapi = 0; int mapi = 0;
int err;
if ((err = yp_get_default_domain (&dom)) != 0) if ((err = yp_get_default_domain (&dom)) != 0) {
return nis_error(err); nis_error(err);
return NULL;
}
while (!strcmp("", server) && aliases[mapi].map != 0L) { while (!strcmp("", server) && aliases[mapi].map != 0L) {
yp_master (dom, aliases[mapi].map, &server); yp_master (dom, aliases[mapi].map, &server);