-/* $OpenBSD: log.h,v 1.4 2024/07/14 06:34:04 tb Exp $ */
+/* $OpenBSD: log.h,v 1.5 2024/07/14 08:41:54 florian Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
#define LOG_H
#include <stdarg.h>
+#include <stdlib.h>
#ifndef SMALL
void log_init(int, int);
__dead void fatalx(const char *, ...)
__attribute__((__format__ (printf, 1, 2)));
#else
-#define log_init(x...) do {} while(0)
-#define log_procinit(x...) do {} while(0)
-#define log_setverbose(x...) do {} while(0)
-#define log_getverbose() 0
-#define log_warn(x...) do {} while(0)
-#define log_warnx(x...) do {} while(0)
-#define log_info(x...) do {} while(0)
-#define log_debug(x...) do {} while(0)
-#define logit(x...) do {} while(0)
-#define vlog(x...) do {} while(0)
+#define log_init(x...) do {} while (0)
+#define log_procinit(x...) do {} while (0)
+#define log_setverbose(x...) do {} while (0)
+#define log_getverbose() (0)
+#define log_warn(x...) do {} while (0)
+#define log_warnx(x...) do {} while (0)
+#define log_info(x...) do {} while (0)
+#define log_debug(x...) do {} while (0)
+#define logit(x...) do {} while (0)
+#define vlog(x...) do {} while (0)
#define fatal(x...) exit(1)
#define fatalx(x...) exit(1)
#endif /* SMALL */