summaryrefslogtreecommitdiff
path: root/dbus/dbus-transport-win.c
diff options
context:
space:
mode:
authorFrank Osterfeld <frank@kdab.net>2009-10-21 20:25:36 +0300
committerRalf Habacker <ralf.habacker@freenet.de>2009-12-01 08:43:43 +0100
commitc8f73b36a5b44eb97165b93d6b9d92e7fee0eae1 (patch)
tree4f4f589a37cbff2dc9772e185a1a51235fd6c2ed /dbus/dbus-transport-win.c
parentfbd21dd0977b9edd6114d56190fe0bb5ffa3a82f (diff)
downloaddbus-c8f73b36a5b44eb97165b93d6b9d92e7fee0eae1.tar.gz
Add api dox for nonce-tcp
Cherry-picked from commit e7a070db22ed4a84dc04a062255356c9f6c4c9c5 in the dbus4win repository, trailing whitespace issues corrected by tml@iki.fi.
Diffstat (limited to 'dbus/dbus-transport-win.c')
-rw-r--r--dbus/dbus-transport-win.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/dbus/dbus-transport-win.c b/dbus/dbus-transport-win.c
index cd28204a..1545c717 100644
--- a/dbus/dbus-transport-win.c
+++ b/dbus/dbus-transport-win.c
@@ -52,19 +52,19 @@ _dbus_transport_open_platform_specific (DBusAddressEntry *entry,
{
const char *method;
+ const char *host = dbus_address_entry_get_value (entry, "host");
+ const char *port = dbus_address_entry_get_value (entry, "port");
+ const char *family = dbus_address_entry_get_value (entry, "family");
+ const char *noncefile = dbus_address_entry_get_value (entry, "noncefile");
+
method = dbus_address_entry_get_method (entry);
_dbus_assert (method != NULL);
if (strcmp (method, "nonce-tcp") != 0)
{
- _DBUS_ASSERT_ERROR_IS_CLEAR (error);
- return DBUS_TRANSPORT_OPEN_NOT_HANDLED;
-}
-
- const char *host = dbus_address_entry_get_value (entry, "host");
- const char *port = dbus_address_entry_get_value (entry, "port");
- const char *family = dbus_address_entry_get_value (entry, "family");
- const char *noncefile = dbus_address_entry_get_value (entry, "noncefile");
+ _DBUS_ASSERT_ERROR_IS_CLEAR (error);
+ return DBUS_TRANSPORT_OPEN_NOT_HANDLED;
+ }
if (port == NULL)
{