]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Renamed log() to log_msg(), but still keeping the old name as a macro.
authorMartin Mares <mj@ucw.cz>
Sat, 5 Jun 2004 09:05:12 +0000 (09:05 +0000)
committerMartin Mares <mj@ucw.cz>
Sat, 5 Jun 2004 09:05:12 +0000 (09:05 +0000)
This is done to avoid clashes with gcc-3.3 which has built-in logarithms :)

lib/birdlib.h
sysdep/unix/log.c

index d218a0b423f49a3c4f815a9f071651d6004b3a85..93f25fb87837c9a225b4b869cfa4c92efae14e18 100644 (file)
@@ -33,7 +33,8 @@
 
 /* Logging and dying */
 
-void log(char *msg, ...);
+#define log log_msg
+void log_msg(char *msg, ...);
 void die(char *msg, ...) NORET;
 void bug(char *msg, ...) NORET;
 
index 6b7c38ca300a2da40f906b09cbaa403b5938e868..08711e172c380fa5b4c49e0bf0bd125bd5483ba6 100644 (file)
@@ -114,7 +114,7 @@ vlog(int class, char *msg, va_list args)
  * formatted as a full line, no need to include |\n| inside.
  */
 void
-log(char *msg, ...)
+log_msg(char *msg, ...)
 {
   int class = 1;
   va_list args;