diff options
author | Florian Obser <florian@cvs.openbsd.org> | 2024-07-14 08:41:55 +0000 |
---|---|---|
committer | Florian Obser <florian@cvs.openbsd.org> | 2024-07-14 08:41:55 +0000 |
commit | 5864dbc9bd755ac50552dcfe4bc0272148e9e3da (patch) | |
tree | 9cdb29ce5a7f9565c93388c343c8bad600ff3bba /sbin | |
parent | 0383c347ce48c62a48d8c32b9f4e49b73ef7aa90 (diff) |
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
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/slaacd/log.h | 23 |
1 files 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 <henning@openbsd.org> @@ -20,6 +20,7 @@ #define LOG_H #include <stdarg.h> +#include <stdlib.h> #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 */ |