diff options
author | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-03-26 18:59:34 +0000 |
---|---|---|
committer | Claudio Takahasi <claudio.takahasi@openbossa.org> | 2007-03-26 18:59:34 +0000 |
commit | daf9e4f8a6fd95b682d26e3bdd965248de30c148 (patch) | |
tree | 355c2d6ac82026cc8d476d240daf2217c2cf89ca /network/manager.c | |
parent | 479dbf10dca70f2d9917729e41d7b0055f5070f7 (diff) |
network: added function to create the server(NAP/GN) service record
Diffstat (limited to 'network/manager.c')
-rw-r--r-- | network/manager.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/network/manager.c b/network/manager.c index 42542c9a..83cbaa14 100644 --- a/network/manager.c +++ b/network/manager.c @@ -145,7 +145,7 @@ static DBusHandlerResult create_server(DBusConnection *conn, if (g_slist_find_custom(mgr->servers, path, (GCompareFunc) strcmp)) return create_path(conn, msg, path, NULL); /* Return already exist error */ - if (server_register(conn, path, id) == -1) { + if (server_register(conn, path, id) < 0) { err_failed(conn, msg, "D-Bus path registration failed"); g_free(path); return DBUS_HANDLER_RESULT_HANDLED; |