[CLEANUP] add a few "const char *" where appropriate
As suggested by Markus Elfring, a few "const char *" have replaced
some "char *" declarations where a function is not expected to
modify a value. It does not change the code but it helps detecting
coding errors.
diff --git a/src/log.c b/src/log.c
index 237efa2..e02a81f 100644
--- a/src/log.c
+++ b/src/log.c
@@ -64,7 +64,7 @@
* Displays the message on stderr with the date and pid. Overrides the quiet
* mode during startup.
*/
-void Alert(char *fmt, ...)
+void Alert(const char *fmt, ...)
{
va_list argp;
struct timeval tv;
@@ -87,7 +87,7 @@
/*
* Displays the message on stderr with the date and pid.
*/
-void Warning(char *fmt, ...)
+void Warning(const char *fmt, ...)
{
va_list argp;
struct timeval tv;
@@ -109,7 +109,7 @@
/*
* Displays the message on <out> only if quiet mode is not set.
*/
-void qfprintf(FILE *out, char *fmt, ...)
+void qfprintf(FILE *out, const char *fmt, ...)
{
va_list argp;
@@ -173,7 +173,7 @@
* It also tries not to waste too much time computing the message header.
* It doesn't care about errors nor does it report them.
*/
-void send_log(struct proxy *p, int level, char *message, ...)
+void send_log(struct proxy *p, int level, const char *message, ...)
{
static int logfd = -1; /* syslog UDP socket */
static long tvsec = -1; /* to force the string to be initialized */