diff options
author | Ralf Habacker <ralf.habacker@freenet.de> | 2015-10-31 21:06:04 +0100 |
---|---|---|
committer | Ralf Habacker <ralf.habacker@freenet.de> | 2015-11-02 21:22:26 +0100 |
commit | d774aa9561e56ae0eb552a1f67ee5e53e92f7e8e (patch) | |
tree | 51be35f8d8247b72788f3e84c2cf023826bf5b96 | |
parent | b8a5cad10b2c584c9f25ee6b4ed3ac96f0856c2d (diff) | |
download | dbus-d774aa9561e56ae0eb552a1f67ee5e53e92f7e8e.tar.gz |
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>
-rw-r--r-- | dbus/dbus-sysdeps-win.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dbus/dbus-sysdeps-win.c b/dbus/dbus-sysdeps-win.c index 4c81f8a4..e626cc65 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, |