From e598853e681d23dd7820627eeed96bf53197eae5 Mon Sep 17 00:00:00 2001 From: Pavel Tvrdik Date: Wed, 3 Dec 2014 10:57:31 +0100 Subject: Add const to a param msg at functions log_msg, log_rl, die, bug and debug --- lib/birdlib.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/birdlib.h') diff --git a/lib/birdlib.h b/lib/birdlib.h index 84a6c1b4..d107c399 100644 --- a/lib/birdlib.h +++ b/lib/birdlib.h @@ -128,10 +128,10 @@ typedef struct buffer { #define log log_msg void log_commit(int class, buffer *buf); -void log_msg(char *msg, ...); -void log_rl(struct tbf *rl, char *msg, ...); -void die(char *msg, ...) NORET; -void bug(char *msg, ...) NORET; +void log_msg(const char *msg, ...); +void log_rl(struct tbf *rl, const char *msg, ...); +void die(const char *msg, ...) NORET; +void bug(const char *msg, ...) NORET; #define L_DEBUG "\001" /* Debugging messages */ #define L_TRACE "\002" /* Protocol tracing */ @@ -143,7 +143,7 @@ void bug(char *msg, ...) NORET; #define L_FATAL "\010" /* Fatal errors */ #define L_BUG "\011" /* BIRD bugs */ -void debug(char *msg, ...); /* Printf to debug output */ +void debug(const char *msg, ...); /* Printf to debug output */ /* Debugging */ -- cgit v1.2.3