summaryrefslogtreecommitdiff
path: root/droute/droute.c
diff options
context:
space:
mode:
authorMark Doffman <mdoff@silver-wind.(none)>2009-02-10 13:12:06 +0000
committerMark Doffman <mdoff@silver-wind.(none)>2009-02-10 20:59:21 +0000
commitdc745797c46af3dcf093e75ef0758d8cc433427f (patch)
tree7017e099503fb7d978468ba07d1e0ddf36a027db /droute/droute.c
parent2db1353c28700fa75c8fa11a6d660046c189a151 (diff)
downloadat-spi2-atk-dc745797c46af3dcf093e75ef0758d8cc433427f.tar.gz
2009-02-10 Mark Doffman <mark.doffman@codethink.co.uk>
Fix some warnings when -Wall used. These included non-void functions with no return values that caused make distcheck to fail.
Diffstat (limited to 'droute/droute.c')
-rw-r--r--droute/droute.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/droute/droute.c b/droute/droute.c
index 3b4d9e3..5b749ae 100644
--- a/droute/droute.c
+++ b/droute/droute.c
@@ -34,7 +34,7 @@
#if defined DROUTE_DEBUG
#define _DROUTE_DEBUG(format, args...) g_print (format , ## args)
#else
- #define _DROUTE_DEBUG
+ #define _DROUTE_DEBUG(format, args...)
#endif
struct _DRouteContext
@@ -129,6 +129,8 @@ droute_new (DBusConnection *bus, const char *introspect_dir)
cnx->bus = bus;
cnx->registered_paths = g_ptr_array_new ();
cnx->introspect_dir = g_strdup(introspect_dir);
+
+ return cnx;
}
void
@@ -162,10 +164,12 @@ droute_add_one (DRouteContext *cnx,
const void *data)
{
DRoutePath *new_path;
+ gboolean registered;
new_path = path_new (cnx, (void *) data, NULL);
- if (!dbus_connection_register_object_path (cnx->bus, path, &droute_vtable, new_path))
+ registered = dbus_connection_register_object_path (cnx->bus, path, &droute_vtable, new_path);
+ if (!registered)
oom();
g_ptr_array_add (cnx->registered_paths, new_path);