millert@ thinks its useful.
-/* $OpenBSD: bounce.c,v 1.85 2021/06/14 17:58:15 eric Exp $ */
+/* $OpenBSD: bounce.c,v 1.86 2021/07/28 19:39:50 benno Exp $ */
/*
* Copyright (c) 2009 Gilles Chehade <gilles@poolp.org>
bounce_message_cmp);
static void bounce_drain(void);
-static void bounce_send(struct bounce_session *, const char *, ...);
+static void bounce_send(struct bounce_session *, const char *, ...)
+ __attribute__((__format__ (printf, 2, 3)));
static int bounce_next_message(struct bounce_session *);
static int bounce_next(struct bounce_session *);
static void bounce_delivery(struct bounce_message *, int, const char *);
-static void bounce_status(struct bounce_session *, const char *, ...);
+static void bounce_status(struct bounce_session *, const char *, ...)
+ __attribute__((__format__ (printf, 2, 3)));
static void bounce_io(struct io *, int, void *);
static void bounce_timeout(int, short, void *);
static void bounce_free(struct bounce_session *);
-/* $OpenBSD: enqueue.c,v 1.119 2021/06/14 17:58:15 eric Exp $ */
+/* $OpenBSD: enqueue.c,v 1.120 2021/07/28 19:39:50 benno Exp $ */
/*
* Copyright (c) 2005 Henning Brauer <henning@bulabula.org>
static void rcpt_add(char *);
static int open_connection(void);
static int get_responses(FILE *, int);
-static int send_line(FILE *, int, char *, ...);
+static int send_line(FILE *, int, char *, ...)
+ __attribute__((__format__ (printf, 3, 4)));
static int enqueue_offline(int, char *[], FILE *, FILE *);
static int savedeadletter(struct passwd *, FILE *);
-/* $OpenBSD: iobuf.h,v 1.6 2021/03/05 12:37:32 eric Exp $ */
+/* $OpenBSD: iobuf.h,v 1.7 2021/07/28 19:39:50 benno Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
*
void* iobuf_reserve(struct iobuf *, size_t);
int iobuf_queue(struct iobuf *, const void*, size_t);
int iobuf_queuev(struct iobuf *, const struct iovec *, int);
-int iobuf_fqueue(struct iobuf *, const char *, ...);
+int iobuf_fqueue(struct iobuf *, const char *, ...)
+ __attribute__((__format__ (printf, 2, 3)));
int iobuf_vfqueue(struct iobuf *, const char *, va_list);
int iobuf_flush(struct iobuf *, int);
int iobuf_flush_tls(struct iobuf *, struct tls *);
-/* $OpenBSD: ioev.h,v 1.19 2021/03/05 12:37:32 eric Exp $ */
+/* $OpenBSD: ioev.h,v 1.20 2021/07/28 19:39:50 benno Exp $ */
/*
* Copyright (c) 2012 Eric Faurot <eric@openbsd.org>
*
int io_print(struct io *, const char *);
int io_printf(struct io *, const char *, ...)
__attribute__((__format__ (printf, 2, 3)));
-int io_vprintf(struct io *, const char *, va_list);
+int io_vprintf(struct io *, const char *, va_list)
+ __attribute__((__format__ (printf, 2, 0)));
size_t io_queued(struct io *);
/* Buffered input functions */
-/* $OpenBSD: mta_session.c,v 1.143 2021/06/14 17:58:15 eric Exp $ */
+/* $OpenBSD: mta_session.c,v 1.144 2021/07/28 19:39:50 benno Exp $ */
/*
* Copyright (c) 2008 Pierre-Yves Ritschard <pyr@openbsd.org>
static void mta_connect(struct mta_session *);
static void mta_enter_state(struct mta_session *, int);
static void mta_flush_task(struct mta_session *, int, const char *, size_t, int);
-static void mta_error(struct mta_session *, const char *, ...);
-static void mta_send(struct mta_session *, char *, ...);
+static void mta_error(struct mta_session *, const char *, ...)
+ __attribute__((__format__ (printf, 2, 3)));
+static void mta_send(struct mta_session *, char *, ...)
+ __attribute__((__format__ (printf, 2, 3)));
static ssize_t mta_queue_data(struct mta_session *);
static void mta_response(struct mta_session *, char *);
static const char * mta_strstate(int);
-/* $OpenBSD: smtpd.h,v 1.669 2021/06/14 17:58:16 eric Exp $ */
+/* $OpenBSD: smtpd.h,v 1.670 2021/07/28 19:39:51 benno Exp $ */
/*
* Copyright (c) 2008 Gilles Chehade <gilles@poolp.org>
/* envelope.c */
-void envelope_set_errormsg(struct envelope *, char *, ...);
+void envelope_set_errormsg(struct envelope *, char *, ...)
+ __attribute__((__format__ (printf, 2, 3)));
void envelope_set_esc_class(struct envelope *, enum enhanced_status_class);
void envelope_set_esc_code(struct envelope *, enum enhanced_status_code);
int envelope_load_buffer(struct envelope *, const char *, size_t);