summaryrefslogtreecommitdiffstats
path: root/log.c
diff options
context:
space:
mode:
authornicm <nicm>2014-10-20 23:57:13 +0000
committernicm <nicm>2014-10-20 23:57:13 +0000
commit0a1a88d63caf3a0e8b4440686e73e1f0f690e03c (patch)
tree1ee10586678d88dd53c1ab0551c2011655925894 /log.c
parent4c42381410891c43b1326e95f150dfcf637b1e69 (diff)
Better format for printf format attributes.
Diffstat (limited to 'log.c')
-rw-r--r--log.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/log.c b/log.c
index f329107c..b266d5a9 100644
--- a/log.c
+++ b/log.c
@@ -80,7 +80,7 @@ log_vwrite(const char *msg, va_list ap)
}
/* Log a debug message. */
-void printflike1
+void
log_debug(const char *msg, ...)
{
va_list ap;
@@ -91,7 +91,7 @@ log_debug(const char *msg, ...)
}
/* Log a critical error with error string and die. */
-__dead void printflike1
+__dead void
log_fatal(const char *msg, ...)
{
char *fmt;
@@ -105,7 +105,7 @@ log_fatal(const char *msg, ...)
}
/* Log a critical error and die. */
-__dead void printflike1
+__dead void
log_fatalx(const char *msg, ...)
{
char *fmt;