X-Git-Url: https://git.distorted.org.uk/~mdw/yaid/blobdiff_plain/15cc376d9c1fb1b81041dac0974ce44e565e24ad..bc23d2c797bd26d221c3668c48bb737108913cab:/yaid.h diff --git a/yaid.h b/yaid.h index a91ea27..0f4efd8 100644 --- a/yaid.h +++ b/yaid.h @@ -67,6 +67,7 @@ #include #include #include +#include #include #include #include @@ -248,8 +249,8 @@ struct query { /* Format and log MSG somewhere sensible, at the syslog(3) priority PRIO. * Prefix it with a description of the query Q, if non-null. */ -extern void logmsg(const struct query */*q*/, - int /*prio*/, const char */*msg*/, ...); +extern void PRINTF_LIKE(3, 4) + logmsg(const struct query */*q*/, int /*prio*/, const char */*msg*/, ...); /*----- System-specific connection identification code --------------------*/