summaryrefslogtreecommitdiff
path: root/fatal.c
diff options
context:
space:
mode:
Diffstat (limited to 'fatal.c')
-rw-r--r--fatal.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/fatal.c b/fatal.c
index ae1aaac6e..5e5aa3fe1 100644
--- a/fatal.c
+++ b/fatal.c
@@ -1,3 +1,4 @@
1/* $OpenBSD: fatal.c,v 1.7 2006/08/03 03:34:42 deraadt Exp $ */
1/* 2/*
2 * Copyright (c) 2002 Markus Friedl. All rights reserved. 3 * Copyright (c) 2002 Markus Friedl. All rights reserved.
3 * 4 *
@@ -23,7 +24,10 @@
23 */ 24 */
24 25
25#include "includes.h" 26#include "includes.h"
26RCSID("$OpenBSD: fatal.c,v 1.2 2003/09/23 20:17:11 markus Exp $"); 27
28#include <sys/types.h>
29
30#include <stdarg.h>
27 31
28#include "log.h" 32#include "log.h"
29 33
@@ -33,6 +37,7 @@ void
33fatal(const char *fmt,...) 37fatal(const char *fmt,...)
34{ 38{
35 va_list args; 39 va_list args;
40
36 va_start(args, fmt); 41 va_start(args, fmt);
37 do_log(SYSLOG_LEVEL_FATAL, fmt, args); 42 do_log(SYSLOG_LEVEL_FATAL, fmt, args);
38 va_end(args); 43 va_end(args);