From d774aa9561e56ae0eb552a1f67ee5e53e92f7e8e Mon Sep 17 00:00:00 2001 From: Ralf Habacker Date: Sat, 31 Oct 2015 21:06:04 +0100 Subject: [PATCH] Fix warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]. Includes minor indention fix. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=92721 Reviewed-by: Simon McVittie --- dbus/dbus-sysdeps-win.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c index 4c81f8a..e626cc6 100644 --- a/dbus/dbus-sysdeps-win.c +++ b/dbus/dbus-sysdeps-win.c @@ -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, -- 2.7.4