summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/birdlib.h3
-rw-r--r--sysdep/unix/log.c2
2 files changed, 3 insertions, 2 deletions
diff --git a/lib/birdlib.h b/lib/birdlib.h
index d218a0b..93f25fb 100644
--- a/lib/birdlib.h
+++ b/lib/birdlib.h
@@ -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;
diff --git a/sysdep/unix/log.c b/sysdep/unix/log.c
index 6b7c38c..08711e1 100644
--- a/sysdep/unix/log.c
+++ b/sysdep/unix/log.c
@@ -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;