From 8fb6ac0e9909417b9cddaf93ca9840dd7bbe1ce1 Mon Sep 17 00:00:00 2001 From: Adam Tkac Date: Fri, 25 Jun 2010 11:24:27 +0000 Subject: [PATCH] winvnc: Declare argv as "char**" instead of "const *char[]" git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4073 3789f03b-4d11-0410-bbf8-ca57d06f2519 --- win/rfb_win32/Service.cxx | 2 +- win/rfb_win32/Service.h | 2 +- win/winvnc/winvnc.cxx | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/win/rfb_win32/Service.cxx b/win/rfb_win32/Service.cxx index 2547277e..982a5b36 100644 --- a/win/rfb_win32/Service.cxx +++ b/win/rfb_win32/Service.cxx @@ -384,7 +384,7 @@ bool rfb::win32::initEventLogLogger(const TCHAR* srcname) { // -=- Registering and unregistering the service bool rfb::win32::registerService(const TCHAR* name, const TCHAR* desc, - int argc, const char* argv[]) { + int argc, char** argv) { // - Initialise the default service parameters const TCHAR* defaultcmdline; diff --git a/win/rfb_win32/Service.h b/win/rfb_win32/Service.h index 00abe108..198726ce 100644 --- a/win/rfb_win32/Service.h +++ b/win/rfb_win32/Service.h @@ -105,7 +105,7 @@ namespace rfb { // event source information, etc. // *** should really accept TCHAR argv - bool registerService(const TCHAR* name, const TCHAR* desc, int argc, const char* argv[]); + bool registerService(const TCHAR* name, const TCHAR* desc, int argc, char** argv); bool unregisterService(const TCHAR* name); bool startService(const TCHAR* name); diff --git a/win/winvnc/winvnc.cxx b/win/winvnc/winvnc.cxx index 73baf6e8..63d8b4e8 100644 --- a/win/winvnc/winvnc.cxx +++ b/win/winvnc/winvnc.cxx @@ -99,7 +99,7 @@ static void MsgBoxOrLog(const char* msg, bool isError=false) { } } -static void processParams(int argc, const char* argv[]) { +static void processParams(int argc, char** argv) { for (int i=1; i