From: Pierre Ossman Date: Fri, 21 Jan 2022 15:15:05 +0000 (+0100) Subject: Log objects should be local X-Git-Tag: v1.12.90~58 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b2efde342b5d983d953a2ee8d5b7a654038a3e05;p=tigervnc.git Log objects should be local Otherwise things might be logged under the wrong label. --- 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;