diff options
Diffstat (limited to 'src/journal')
-rw-r--r-- | src/journal/journald-server.h | 2 | ||||
-rw-r--r-- | src/journal/microhttpd-util.h | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/journal/journald-server.h b/src/journal/journald-server.h index fb4e8e4c3d..86f7145292 100644 --- a/src/journal/journald-server.h +++ b/src/journal/journald-server.h @@ -130,7 +130,7 @@ typedef struct Server { #define N_IOVEC_UDEV_FIELDS 32 void server_dispatch_message(Server *s, struct iovec *iovec, unsigned n, unsigned m, struct ucred *ucred, struct timeval *tv, const char *label, size_t label_len, const char *unit_id, int priority); -void server_driver_message(Server *s, sd_id128_t message_id, const char *format, ...); +void server_driver_message(Server *s, sd_id128_t message_id, const char *format, ...) _printf_attr_(3,4); /* gperf lookup function */ const struct ConfigPerfItem* journald_gperf_lookup(const char *key, unsigned length); diff --git a/src/journal/microhttpd-util.h b/src/journal/microhttpd-util.h index d4fefa72d3..20ad76990c 100644 --- a/src/journal/microhttpd-util.h +++ b/src/journal/microhttpd-util.h @@ -23,4 +23,6 @@ #include <stdarg.h> -void microhttpd_logger(void *arg, const char *fmt, va_list ap); +#include "macro.h" + +void microhttpd_logger(void *arg, const char *fmt, va_list ap) _printf_attr_(2, 0); |