0
0
mirror of https://gitlab.nic.cz/labs/bird.git synced 2024-12-22 09:41:54 +00:00

Renamed log() to log_msg(), but still keeping the old name as a macro.

This is done to avoid clashes with gcc-3.3 which has built-in logarithms :)
This commit is contained in:
Martin Mares 2004-06-05 09:05:12 +00:00
parent 5da8f82feb
commit e98bc2ea9b
2 changed files with 3 additions and 2 deletions

View File

@ -33,7 +33,8 @@
/* Logging and dying */ /* Logging and dying */
void log(char *msg, ...); #define log log_msg
void log_msg(char *msg, ...);
void die(char *msg, ...) NORET; void die(char *msg, ...) NORET;
void bug(char *msg, ...) NORET; void bug(char *msg, ...) NORET;

View File

@ -114,7 +114,7 @@ vlog(int class, char *msg, va_list args)
* formatted as a full line, no need to include |\n| inside. * formatted as a full line, no need to include |\n| inside.
*/ */
void void
log(char *msg, ...) log_msg(char *msg, ...)
{ {
int class = 1; int class = 1;
va_list args; va_list args;