Revision e598853e

View differences:

client/util.c
17 17
/* Client versions of logging functions */
18 18

  
19 19
static void
20
vlog(char *msg, va_list args)
20
vlog(const char *msg, va_list args)
21 21
{
22 22
  char buf[1024];
23 23

  
......
28 28
}
29 29

  
30 30
void
31
bug(char *msg, ...)
31
bug(const char *msg, ...)
32 32
{
33 33
  va_list args;
34 34

  
......
41 41
}
42 42

  
43 43
void
44
die(char *msg, ...)
44
die(const char *msg, ...)
45 45
{
46 46
  va_list args;
47 47

  
lib/birdlib.h
128 128

  
129 129
#define log log_msg
130 130
void log_commit(int class, buffer *buf);
131
void log_msg(char *msg, ...);
132
void log_rl(struct tbf *rl, char *msg, ...);
133
void die(char *msg, ...) NORET;
134
void bug(char *msg, ...) NORET;
131
void log_msg(const char *msg, ...);
132
void log_rl(struct tbf *rl, const char *msg, ...);
133
void die(const char *msg, ...) NORET;
134
void bug(const char *msg, ...) NORET;
135 135

  
136 136
#define L_DEBUG "\001"			/* Debugging messages */
137 137
#define L_TRACE "\002"			/* Protocol tracing */
......
143 143
#define L_FATAL "\010"			/* Fatal errors */
144 144
#define L_BUG "\011"			/* BIRD bugs */
145 145

  
146
void debug(char *msg, ...);		/* Printf to debug output */
146
void debug(const char *msg, ...);		/* Printf to debug output */
147 147

  
148 148
/* Debugging */
149 149

  
sysdep/unix/log.c
163 163
 * It is essentially a sequence of log_reset(), logn() and log_commit().
164 164
 */
165 165
void
166
log_msg(char *msg, ...)
166
log_msg(const char *msg, ...)
167 167
{
168 168
  int class = 1;
169 169
  va_list args;
......
176 176
}
177 177

  
178 178
void
179
log_rl(struct tbf *f, char *msg, ...)
179
log_rl(struct tbf *f, const char *msg, ...)
180 180
{
181 181
  int last_hit = f->mark;
182 182
  int class = 1;
......
202 202
 * of the program.
203 203
 */
204 204
void
205
bug(char *msg, ...)
205
bug(const char *msg, ...)
206 206
{
207 207
  va_list args;
208 208

  
......
219 219
 * of the program.
220 220
 */
221 221
void
222
die(char *msg, ...)
222
die(const char *msg, ...)
223 223
{
224 224
  va_list args;
225 225

  
......
236 236
 * to the debugging output. No newline character is appended.
237 237
 */
238 238
void
239
debug(char *msg, ...)
239
debug(const char *msg, ...)
240 240
{
241 241
  va_list args;
242 242
  char buf[1024];

Also available in: Unified diff