Update dependency on mLib.
AC_SEARCH_LIBS([socket], [socket])
-PKG_CHECK_MODULES([mLib], [mLib >= 2.1.0])
+PKG_CHECK_MODULES([mLib], [mLib >= 2.2.1])
AM_CFLAGS="$AM_CFLAGS $mLib_CFLAGS"
dnl--------------------------------------------------------------------------
Section: net
Priority: extra
Maintainer: Mark Wooding <mdw@distorted.org.uk>
-Build-Depends: mlib-dev (>= 2.1.0), debhelper (>= 8),
+Build-Depends: mlib-dev (>= 2.2.1), debhelper (>= 8),
Standards-Version: 3.1.1
Package: yaid
/* Format the message FMT and queue it to be sent to the client. Client
* input will be disabled until the write completes.
*/
-static void write_to_client(struct client *c, const char *fmt, ...)
+static void PRINTF_LIKE(2, 3)
+ write_to_client(struct client *c, const char *fmt, ...)
{
va_list ap;
char buf[WRBUFSZ];
}
/* Quit because of a fatal signal. */
-static void quit(int sig, void *p)
+static void NORETURN quit(int sig, void *p)
{
const char *signame = p;
#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 --------------------*/