summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPavel Tvrdik <pawel.tvrdik@gmail.cz>2014-12-03 10:57:31 +0100
committerOndrej Zajicek <santiago@crfreenet.org>2015-02-21 19:32:57 +0100
commite598853e681d23dd7820627eeed96bf53197eae5 (patch)
tree7fe7bfaacd7dfefa614e4a4b50d694e0094b0df9 /lib
parent4a591d4b947e0abc0ad013ca1b75da27c6922be5 (diff)
Add const to a param msg at functions log_msg, log_rl, die, bug and debug
Diffstat (limited to 'lib')
-rw-r--r--lib/birdlib.h10
1 files changed, 5 insertions, 5 deletions
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 */