summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorHakan Olsson <ho@cvs.openbsd.org>2002-05-28 11:17:58 +0000
committerHakan Olsson <ho@cvs.openbsd.org>2002-05-28 11:17:58 +0000
commita110bd034b66c81e3f4781d6d286ba5c4b488f41 (patch)
tree593f76380ba56b015910279a6c0f48c2cf090600 /sbin
parent416af44b441b85a2ab3863d3c353f982fc76db83 (diff)
printf format __attribute__. From <greg@nest.cx>, slightly modified.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/isakmpd/log.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/sbin/isakmpd/log.h b/sbin/isakmpd/log.h
index 91bcf68ffb0..fed703176d0 100644
--- a/sbin/isakmpd/log.h
+++ b/sbin/isakmpd/log.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.h,v 1.11 2001/10/05 08:18:37 ho Exp $ */
+/* $OpenBSD: log.h,v 1.12 2002/05/28 11:17:57 ho Exp $ */
/* $EOM: log.h,v 1.19 2000/03/30 14:27:23 ho Exp $ */
/*
@@ -68,7 +68,8 @@ enum log_classes {
#define LOG_DBG(x) log_debug x
#define LOG_DBG_BUF(x) log_debug_buf x
-extern void log_debug (int, int, const char *, ...);
+extern void log_debug (int, int, const char *, ...)
+ __attribute__ ((__format__ (__printf__, 3, 4)));
extern void log_debug_buf (int, int, const char *, const u_int8_t *, size_t);
extern void log_debug_cmd (int, int);
extern void log_debug_toggle (void);
@@ -88,9 +89,12 @@ extern void log_packet_stop (void);
#endif /* USE_DEBUG */
extern FILE *log_current (void);
-extern void log_error (const char *, ...);
-extern void log_fatal (const char *, ...);
-extern void log_print (const char *, ...);
+extern void log_error (const char *, ...)
+ __attribute__ ((__format__ (__printf__, 1, 2)));
+extern void log_fatal (const char *, ...)
+ __attribute__ ((__format__ (__printf__, 1, 2)));
+extern void log_print (const char *, ...)
+ __attribute__ ((__format__ (__printf__, 1, 2)));
extern void log_to (FILE *);
extern void log_init (void);