aboutsummaryrefslogtreecommitdiff
path: root/src/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/log.c')
-rw-r--r--src/log.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/log.c b/src/log.c
index cd8fc7c..9cb6643 100644
--- a/src/log.c
+++ b/src/log.c
@@ -1,5 +1,6 @@
#include <stdio.h>
#include <stdlib.h>
+#include <unistd.h>
#include <errno.h>
#include <stdarg.h>
#include <syslog.h>
@@ -32,7 +33,7 @@ void log_free(void)
}
}
-int logs(char* format, ...)
+int logs(const char* format, ...)
{
int ret;
va_list vargs;