FreeBSD/contrib/openbsm/libauditd/auditd_lib.c
/*
 * Look up and return the error string for the given audit error code.
 */
Look up and return the error string for the given audit error code.
Look up and return the error string for the given audit error code .
const char *
auditd_strerror(int errcode)
{
	int idx = -errcode;
	if (idx < 0 || idx > (int)MAXERRCODE)
		return ("Invalid auditd error code");
	return (auditd_errmsg[idx]);
}
const char * auditd_strerror ( int errcode ) { int idx = - errcode ; if ( idx < 0 || idx > ( int ) MAXERRCODE ) return ( " " ) ; return ( auditd_errmsg [ idx ] ) ; }
Look up and return the error string for the given audit error code.
Look up and return the error string for the given audit error code .