#include <mLib/dstr.h>
#include <mLib/fdflags.h>
#include <mLib/fwatch.h>
+#include <mLib/macros.h>
#include <mLib/mdwopt.h>
#include <mLib/quis.h>
#include <mLib/report.h>
/* 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 --------------------*/
enum {
T_OK, /* Successful: results returned */
T_EOL, /* End-of-line found immediately */
- T_EOF, /* End-of-file found immediately */
- T_ERROR /* Some kind of error occurred */
+ T_ERROR, /* Some kind of error occurred */
+ T_EOF /* End-of-file found immediately */
};
/* A context for parsing a policy file. */