diff options
author | Chad Loder <cloder@cvs.openbsd.org> | 2008-12-04 17:24:14 +0000 |
---|---|---|
committer | Chad Loder <cloder@cvs.openbsd.org> | 2008-12-04 17:24:14 +0000 |
commit | 869cd4e4d1d916b0ed1bbf8f386d3302c69e46d7 (patch) | |
tree | dbeab30c0b440c3e027b9ea8d84dcfd93b33905b /usr.sbin/smtpd/imsg.c | |
parent | 4417df738b65cdcfb5fcc5c2e46cf477a204c38a (diff) |
Declare printf-style functions with __attribute__((format(printf,x,x)))
and fix some of the errors caught by this. Part of a general push to
make yyerror() -Wformat clean throughout the tree.
Diffstat (limited to 'usr.sbin/smtpd/imsg.c')
-rw-r--r-- | usr.sbin/smtpd/imsg.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/smtpd/imsg.c b/usr.sbin/smtpd/imsg.c index 00665191dca..bf32c79cde6 100644 --- a/usr.sbin/smtpd/imsg.c +++ b/usr.sbin/smtpd/imsg.c @@ -1,4 +1,4 @@ -/* $OpenBSD: imsg.c,v 1.1 2008/11/01 21:35:28 gilles Exp $ */ +/* $OpenBSD: imsg.c,v 1.2 2008/12/04 17:24:13 cloder Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -202,8 +202,8 @@ imsg_create(struct imsgbuf *ibuf, enum imsg_type type, u_int32_t peerid, datalen += IMSG_HEADER_SIZE; if (datalen > MAX_IMSGSIZE) { - log_warnx("imsg_create: len %u > MAX_IMSGSIZE; " - "type %u peerid %lu", datalen + IMSG_HEADER_SIZE, + log_warnx("imsg_create: len %zu > MAX_IMSGSIZE; " + "type %u peerid %u", datalen + IMSG_HEADER_SIZE, type, peerid); return (NULL); } |