summaryrefslogtreecommitdiff
path: root/sbin/photurisd/log.h
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2002-06-10 19:58:21 +0000
committerMarc Espie <espie@cvs.openbsd.org>2002-06-10 19:58:21 +0000
commit77224652be0edca8b40e37a6939445080d9c25d5 (patch)
treea5eceba166a3459311c840e9d12204ff3b287e4e /sbin/photurisd/log.h
parent35fd31a5849815bd4c982dfe259e378df50ccb9f (diff)
kill __FUNCTION__
add __attribute__((format...) Fix one bad call. okay provos@
Diffstat (limited to 'sbin/photurisd/log.h')
-rw-r--r--sbin/photurisd/log.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/sbin/photurisd/log.h b/sbin/photurisd/log.h
index 9a0e6f4626c..1e09525cc70 100644
--- a/sbin/photurisd/log.h
+++ b/sbin/photurisd/log.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: log.h,v 1.4 2002/06/09 08:13:08 todd Exp $ */
+/* $OpenBSD: log.h,v 1.5 2002/06/10 19:58:20 espie Exp $ */
/* $EOM: log.h,v 1.19 2000/03/30 14:27:23 ho Exp $ */
/*
@@ -77,9 +77,18 @@ extern void log_debug_cmd (int, int);
#endif /* USE_DEBUG */
extern FILE *log_current (void);
+#if defined(__GNUC__)
+extern void log_error (const char *, ...)
+ __attribute__((__format__ (printf, 1, 2))) __attribute__((__nonnull__(1)));
+extern void log_fatal (const char *, ...)
+ __attribute__((__format__ (printf, 1, 2))) __attribute__((__nonnull__(1)));
+extern void log_print (const char *, ...)
+ __attribute__((__format__ (printf, 1, 2))) __attribute__((__nonnull__(1)));
+#else
extern void log_error (const char *, ...);
extern void log_fatal (const char *, ...);
extern void log_print (const char *, ...);
+#endif
extern void log_to (FILE *);
extern void log_init (void);