Commit d774aa95 authored by Ralf Habacker's avatar Ralf Habacker

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=92721Reviewed-by: default avatarSimon McVittie <simon.mcvittie@collabora.co.uk>
parent b8a5cad1
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment