]> source.dussan.org Git - tigervnc.git/commitdiff
Fix bad initialiser lists
authorPierre Ossman <ossman@cendio.se>
Tue, 3 Mar 2015 15:48:01 +0000 (16:48 +0100)
committerPierre Ossman <ossman@cendio.se>
Tue, 3 Mar 2015 15:48:01 +0000 (16:48 +0100)
vncviewer/parameters.cxx
win/rfb_win32/Security.cxx

index 713ac070b78f2b68a52065ae8b035a02b06f11a9..712a257ab3b0e31fe77e5b2e339fe5764eb74ea5 100644 (file)
@@ -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) {
 
index b4e93530048f80e2ece9b5d3c447df3fef8fa56e..cad13256a92b6ec6085c232b3415ed6d1f3935e5 100644 (file)
@@ -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))