diff options
author | Pavel Tvrdik <pawel.tvrdik@gmail.cz> | 2014-12-03 10:57:31 +0100 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2015-02-21 19:32:57 +0100 |
commit | e598853e681d23dd7820627eeed96bf53197eae5 (patch) | |
tree | 7fe7bfaacd7dfefa614e4a4b50d694e0094b0df9 /sysdep | |
parent | 4a591d4b947e0abc0ad013ca1b75da27c6922be5 (diff) |
Add const to a param msg at functions log_msg, log_rl, die, bug and debug
Diffstat (limited to 'sysdep')
-rw-r--r-- | sysdep/unix/log.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sysdep/unix/log.c b/sysdep/unix/log.c index 3ae98df8..7cb26360 100644 --- a/sysdep/unix/log.c +++ b/sysdep/unix/log.c @@ -163,7 +163,7 @@ vlog(int class, const char *msg, va_list args) * It is essentially a sequence of log_reset(), logn() and log_commit(). */ void -log_msg(char *msg, ...) +log_msg(const char *msg, ...) { int class = 1; va_list args; @@ -176,7 +176,7 @@ log_msg(char *msg, ...) } void -log_rl(struct tbf *f, char *msg, ...) +log_rl(struct tbf *f, const char *msg, ...) { int last_hit = f->mark; int class = 1; @@ -202,7 +202,7 @@ log_rl(struct tbf *f, char *msg, ...) * of the program. */ void -bug(char *msg, ...) +bug(const char *msg, ...) { va_list args; @@ -219,7 +219,7 @@ bug(char *msg, ...) * of the program. */ void -die(char *msg, ...) +die(const char *msg, ...) { va_list args; @@ -236,7 +236,7 @@ die(char *msg, ...) * to the debugging output. No newline character is appended. */ void -debug(char *msg, ...) +debug(const char *msg, ...) { va_list args; char buf[1024]; |