From dc5d4411b6ba3413fef24e2b33f287734b29fb8c Mon Sep 17 00:00:00 2001 From: florian Date: Sun, 14 Jul 2024 08:41:54 +0000 Subject: [PATCH] sync slaacd(8) log.h to dhcpleased(8) log.h - include stdlib.h for exit(3) - knf fixes - define log_getverbose as (0) instead of 0 input & OK tb --- sbin/slaacd/log.h | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/sbin/slaacd/log.h b/sbin/slaacd/log.h index 80e95de8c28..7ee991a9e0f 100644 --- a/sbin/slaacd/log.h +++ b/sbin/slaacd/log.h @@ -1,4 +1,4 @@ -/* $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 @@ -20,6 +20,7 @@ #define LOG_H #include +#include #ifndef SMALL void log_init(int, int); @@ -43,16 +44,16 @@ __dead void fatal(const char *, ...) __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 */ -- 2.20.1