From: Pierre Ossman Date: Tue, 3 Mar 2015 15:48:01 +0000 (+0100) Subject: Fix bad initialiser lists X-Git-Tag: v1.4.90~33^2~5 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6e538b4020be19a4381830b5d5d3d06bc4d7e841;p=tigervnc.git Fix bad initialiser lists --- diff --git a/vncviewer/parameters.cxx b/vncviewer/parameters.cxx index 713ac070..712a257a 100644 --- a/vncviewer/parameters.cxx +++ b/vncviewer/parameters.cxx @@ -182,8 +182,8 @@ static VoidParameter* parameterArray[] = { static struct { const char first; const char second; -} replaceMap[] = {'\n', 'n', - '\r', 'r'}; +} replaceMap[] = { { '\n', 'n' }, + { '\r', 'r' } }; static bool encodeValue(const char* val, char* dest, size_t destSize) { diff --git a/win/rfb_win32/Security.cxx b/win/rfb_win32/Security.cxx index b4e93530..cad13256 100644 --- a/win/rfb_win32/Security.cxx +++ b/win/rfb_win32/Security.cxx @@ -122,7 +122,7 @@ void Sid::getUserNameAndDomain(TCHAR** name, TCHAR** domain) { Sid::Administrators::Administrators() { PSID sid = 0; - SID_IDENTIFIER_AUTHORITY ntAuth = SECURITY_NT_AUTHORITY; + SID_IDENTIFIER_AUTHORITY ntAuth = { SECURITY_NT_AUTHORITY }; if (!AllocateAndInitializeSid(&ntAuth, 2, SECURITY_BUILTIN_DOMAIN_RID, DOMAIN_ALIAS_RID_ADMINS, @@ -134,7 +134,7 @@ Sid::Administrators::Administrators() { Sid::SYSTEM::SYSTEM() { PSID sid = 0; - SID_IDENTIFIER_AUTHORITY ntAuth = SECURITY_NT_AUTHORITY; + SID_IDENTIFIER_AUTHORITY ntAuth = { SECURITY_NT_AUTHORITY }; if (!AllocateAndInitializeSid(&ntAuth, 1, SECURITY_LOCAL_SYSTEM_RID, 0, 0, 0, 0, 0, 0, 0, &sid))