]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
Fix warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement].
authorRalf Habacker <ralf.habacker@freenet.de>
Sat, 31 Oct 2015 20:06:04 +0000 (21:06 +0100)
committerRalf Habacker <ralf.habacker@freenet.de>
Mon, 2 Nov 2015 20:22:26 +0000 (21:22 +0100)
Includes minor indention fix.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=92721
Reviewed-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
dbus/dbus-sysdeps-win.c

index 4c81f8a4a79e8f1b68dace208a9e70cc9125266b..e626cc6569ae6e2a46877eb37bee5bdc3394e6a7 100644 (file)
@@ -2935,6 +2935,7 @@ _dbus_daemon_publish_session_bus_address (const char* address, const char *scope
   char *shared_addr = NULL;
   DBusString shm_name;
   DBusString mutex_name;
+  dbus_uint64_t len;
 
   _dbus_assert (address);
 
@@ -2969,7 +2970,7 @@ _dbus_daemon_publish_session_bus_address (const char* address, const char *scope
     }
 
   // create shm
-  dbus_uint64_t len = strlen( address ) + 1;
+  len = strlen (address) + 1;
 
   hDBusSharedMem = CreateFileMappingA( INVALID_HANDLE_VALUE, NULL, PAGE_READWRITE,
                                        len >> 32, len & 0xffffffffu,