FreeBSD/contrib/ntp/ntpd/ntpd.c
/*
 * assertion_failed - Redirect assertion failures to msyslog().
 */
Redirect assertion failures to msyslog().
Redirect assertion failures to msyslog () .
static void
assertion_failed(
	const char *file,
	int line,
	isc_assertiontype_t type,
	const char *cond
	)
{
	isc_assertion_setcallback(NULL);    
	msyslog(LOG_ERR, "%s:%d: %s(%s) failed",
		file, line, isc_assertion_typetotext(type), cond);
	msyslog(LOG_ERR, "exiting (due to assertion failure)");
#if defined(DEBUG) && defined(SYS_WINNT)
	if (debug)
		DebugBreak();
#endif
	abort();
}
static void assertion_failed ( const char * file , int line , isc_assertiontype_t type , const char * cond ) { isc_assertion_setcallback ( NULL ) ; msyslog ( LOG_ERR , " " , file , line , isc_assertion_typetotext ( type ) , cond ) ; msyslog ( LOG_ERR , " " ) ; #if defined ( DEBUG ) && defined ( SYS_WINNT ) if ( debug ) DebugBreak ( ) ; #endif abort ( ) ; }
assertion_failed - Redirect assertion failures to msyslog().
assertion_failed - Redirect assertion failures to msyslog () .
/* Avoid recursion */