aboutsummaryrefslogtreecommitdiff
path: root/log.h
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-06-06 08:34:54 +0000
committerOmar Polo <op@omarpolo.com>2023-06-06 08:34:54 +0000
commit3dd89fbb44f7f61b8c89db12f4469ca49c17bc68 (patch)
treeac48a0ad797f7bc6f056dcbad0389cb7072d9389 /log.h
parent3a8c76eab2203c2e19ac63a2e22cea79e250cbea (diff)
predeclare struct client
Diffstat (limited to 'log.h')
-rw-r--r--log.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/log.h b/log.h
index 842bbe5..95d1b22 100644
--- a/log.h
+++ b/log.h
@@ -21,6 +21,8 @@ void fatalx(const char *, ...)
__attribute__((format (printf, 1, 2)))
__attribute__((__noreturn__));
+struct client;
+
#define LOG_ATTR_FMT __attribute__((format (printf, 2, 3)))
void log_err(struct client *, const char *, ...) LOG_ATTR_FMT;
void log_warn(struct client *, const char *, ...) LOG_ATTR_FMT;