mirror of
https://gitlab.freedesktop.org/dbus/dbus.git
synced 2026-01-06 06:00:14 +01:00
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 <simon.mcvittie@collabora.co.uk>
This commit is contained in:
parent
b8a5cad10b
commit
d774aa9561
1 changed files with 2 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue