summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.c b/main.c
index a5607b0..58619ba 100644
--- a/main.c
+++ b/main.c
@@ -59,7 +59,7 @@ void rfbLogEnable(int enabled) {
*/
void
-rfbLog(const char *format, ...)
+rfbDefaultLog(const char *format, ...)
{
va_list args;
char buf[256];
@@ -82,6 +82,8 @@ rfbLog(const char *format, ...)
UNLOCK(logMutex);
}
+rfbLogProc rfbLog=rfbDefaultLog;
+
void rfbLogPerror(const char *str)
{
rfbLog("%s: %s\n", str, strerror(errno));