predeclare struct client

This commit is contained in:
Omar Polo 2023-06-06 08:34:54 +00:00
parent 3a8c76eab2
commit 3dd89fbb44
1 changed files with 2 additions and 0 deletions

2
log.h
View File

@ -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;