summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2008-03-24 16:01:05 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2008-03-24 16:01:05 +0100
commitdc0f1fe09115ab30e101615b1e657d9e8ecab7ec (patch)
tree4fa265877c1478961af29db93628353003a4abab /src
parentcffa6d713f83ab5d48c9f527eee17a5acb545a16 (diff)
add a format attribute to log_handler()
Diffstat (limited to 'src')
-rw-r--r--src/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/log.c b/src/log.c
index 628d65c..3cb5eb0 100644
--- a/src/log.c
+++ b/src/log.c
@@ -41,7 +41,7 @@
static FILE *log_handle=NULL;
static int f_status=0;
-static int log_handler(const char *_format, va_list ap);
+static int log_handler(const char *_format, va_list ap) __attribute__((format(printf, 1, 0)));
/* static unsigned int log_levels=LOG_LEVEL_DEBUG|LOG_LEVEL_TRACE|LOG_LEVEL_QUIET|LOG_LEVEL_INFO|LOG_LEVEL_VERBOSE|LOG_LEVEL_PROGRESS|LOG_LEVEL_WARNING|LOG_LEVEL_ERROR|LOG_LEVEL_PERROR|LOG_LEVEL_CRITICAL; */
static unsigned int log_levels=LOG_LEVEL_TRACE|LOG_LEVEL_QUIET|LOG_LEVEL_INFO|LOG_LEVEL_VERBOSE|LOG_LEVEL_PROGRESS|LOG_LEVEL_WARNING|LOG_LEVEL_ERROR|LOG_LEVEL_PERROR|LOG_LEVEL_CRITICAL;