summaryrefslogtreecommitdiff
path: root/src/agent.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2009-08-29 22:50:54 -0700
committerMarcel Holtmann <marcel@holtmann.org>2009-08-29 22:50:54 -0700
commit2afb01c31fad5b0e814eb13389ded499dcd8d88b (patch)
treefddc7c2cf5855e2ad65d007e025f66ddee65e00d /src/agent.c
parentcc9ef4d64c25b22f056c6e0e5c096f0d32841f47 (diff)
downloadconnman-2afb01c31fad5b0e814eb13389ded499dcd8d88b.tar.gz
connman-2afb01c31fad5b0e814eb13389ded499dcd8d88b.tar.bz2
connman-2afb01c31fad5b0e814eb13389ded499dcd8d88b.zip
Add support for handling errors from agent registration
Diffstat (limited to 'src/agent.c')
-rw-r--r--src/agent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/agent.c b/src/agent.c
index 42a126e8..82f6146e 100644
--- a/src/agent.c
+++ b/src/agent.c
@@ -75,7 +75,7 @@ int __connman_agent_unregister(const char *sender, const char *path)
DBG("sender %s path %s", sender, path);
if (agent_path == NULL)
- return -ENOENT;
+ return -ESRCH;
if (agent_watch > 0)
g_dbus_remove_watch(connection, agent_watch);