From b2efde342b5d983d953a2ee8d5b7a654038a3e05 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Fri, 21 Jan 2022 16:15:05 +0100 Subject: [PATCH] Log objects should be local Otherwise things might be logged under the wrong label. --- unix/vncconfig/vncconfig.cxx | 2 +- vncviewer/vncviewer.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/unix/vncconfig/vncconfig.cxx b/unix/vncconfig/vncconfig.cxx index 51c38989..276d0e62 100644 --- a/unix/vncconfig/vncconfig.cxx +++ b/unix/vncconfig/vncconfig.cxx @@ -50,7 +50,7 @@ using namespace rfb; -LogWriter vlog("vncconfig"); +static LogWriter vlog("vncconfig"); StringParameter displayname("display", "The X display", ""); BoolParameter noWindow("nowin", "Don't display a window", 0); diff --git a/vncviewer/vncviewer.cxx b/vncviewer/vncviewer.cxx index adadad78..bf8e7d43 100644 --- a/vncviewer/vncviewer.cxx +++ b/vncviewer/vncviewer.cxx @@ -81,7 +81,7 @@ #include "win32.h" #endif -rfb::LogWriter vlog("main"); +static rfb::LogWriter vlog("main"); using namespace network; using namespace rfb; -- 2.39.5