diff options
author | 2014-01-24 07:31:25 +0000 | |
---|---|---|
committer | 2014-01-24 07:31:25 +0000 | |
commit | e482ada466c5c55f43a5e18071cf5b9f7eee54a0 (patch) | |
tree | 4bb9af7f343f5164afc89a932bfcef5917a3761f | |
parent | make sure sa_lookup() can actually find SAs; ok mikeb (diff) | |
download | wireguard-openbsd-e482ada466c5c55f43a5e18071cf5b9f7eee54a0.tar.xz wireguard-openbsd-e482ada466c5c55f43a5e18071cf5b9f7eee54a0.zip |
enable format-string checks for log_*(); ok mikeb
-rw-r--r-- | sbin/iked/iked.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sbin/iked/iked.h b/sbin/iked/iked.h index 86ff845c1fa..2cb80473c91 100644 --- a/sbin/iked/iked.h +++ b/sbin/iked/iked.h @@ -1,4 +1,4 @@ -/* $OpenBSD: iked.h,v 1.64 2014/01/24 05:58:52 mikeb Exp $ */ +/* $OpenBSD: iked.h,v 1.65 2014/01/24 07:31:25 markus Exp $ */ /* * Copyright (c) 2010-2013 Reyk Floeter <reyk@openbsd.org> @@ -875,12 +875,12 @@ void ibuf_zero(struct ibuf *); /* log.c */ void log_init(int); void log_verbose(int); -void log_warn(const char *, ...); -void log_warnx(const char *, ...); -void log_info(const char *, ...); -void log_debug(const char *, ...); -void print_debug(const char *, ...); -void print_verbose(const char *, ...); +void log_warn(const char *, ...) __attribute__((format(printf, 1, 2))); +void log_warnx(const char *, ...) __attribute__((format(printf, 1, 2))); +void log_info(const char *, ...) __attribute__((format(printf, 1, 2))); +void log_debug(const char *, ...) __attribute__((format(printf, 1, 2))); +void print_debug(const char *, ...) __attribute__((format(printf, 1, 2))); +void print_verbose(const char *, ...) __attribute__((format(printf, 1, 2))); __dead void fatal(const char *); __dead void fatalx(const char *); |