Remove now-unused log_fatal()

This commit is contained in:
Todd C. Miller
2014-04-30 17:00:20 -06:00
parent 5086194c67
commit cbee9cc8cb
5 changed files with 11 additions and 29 deletions

View File

@@ -424,7 +424,7 @@ log_allowed(int status)
}
/*
* Perform logging for log_warning()/log_fatal()
* Perform logging for log_warning().
*/
static void
vlog_warning(int flags, const char *fmt, va_list ap)
@@ -529,23 +529,6 @@ log_warning(int flags, const char *fmt, ...)
debug_return;
}
void
log_fatal(int flags, const char *fmt, ...)
{
va_list ap;
debug_decl(log_error, SUDO_DEBUG_LOGGING)
/* Log the error. */
va_start(ap, fmt);
vlog_warning(flags, fmt, ap);
va_end(ap);
/* Exit the plugin. */
sudoers_cleanup();
sudo_debug_exit(__func__, __FILE__, __LINE__, sudo_debug_subsys);
fatal_longjmp(1);
}
#define MAX_MAILFLAGS 63
/*