mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Cosmetic changes and paranoia checks:
ypbind.c: Make fewer assumtions about the state of the dom_alive and dom_broadcasting flags in roc_received(). If select() fails, use syslog() to report the error rather than perror(). Check that all our malloc()s succeed. Report malloc() failure in ypbindproc_setdom_2() to callers. yplib.c: Use #defined constants in ypbinderr_string() rather than hard-coded values.
This commit is contained in:
parent
99d181f7a9
commit
62967ca2b2
1 changed files with 5 additions and 5 deletions
|
|
@ -28,7 +28,7 @@
|
|||
*/
|
||||
|
||||
#ifndef LINT
|
||||
static char *rcsid = "$Id: yplib.c,v 1.7 1995/04/21 18:04:22 wpaul Exp $";
|
||||
static char *rcsid = "$Id: yplib.c,v 1.8 1995/04/26 19:03:05 wpaul Exp $";
|
||||
#endif
|
||||
|
||||
#include <sys/param.h>
|
||||
|
|
@ -177,14 +177,14 @@ int incode;
|
|||
switch(incode) {
|
||||
case 0:
|
||||
return "Success";
|
||||
case 1:
|
||||
case YPBIND_ERR_ERR:
|
||||
return "Internal ypbind error";
|
||||
case 2:
|
||||
case YPBIND_ERR_NOSERV:
|
||||
return "Domain not bound";
|
||||
case 3:
|
||||
case YPBIND_ERR_RESC:
|
||||
return "System resource allocation failure";
|
||||
}
|
||||
sprintf(err, "Unknown ypbind error %d\n", incode);
|
||||
sprintf(err, "Unknown ypbind error: #%d\n", incode);
|
||||
return err;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue