From: Ralf Habacker Date: Sat, 31 Oct 2015 20:06:04 +0000 (+0100) Subject: Fix warning: ISO C90 forbids mixed declarations and code [-Wdeclaration-after-statement]. X-Git-Tag: dbus-1.10.4~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d774aa9561e56ae0eb552a1f67ee5e53e92f7e8e;p=thirdparty%2Fdbus.git 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 --- diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c index 4c81f8a4a..e626cc656 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,