summaryrefslogtreecommitdiffstats
path: root/src/gnss.c
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2011-03-25 14:51:16 -0500
committerDenis Kenzior <denkenz@gmail.com>2011-03-28 18:06:58 -0500
commit62d4037c38f065463132b0d780781504995edc69 (patch)
tree9528d27fadf1b912f40ded8e3e33bde56fe38f43 /src/gnss.c
parent8b2d2b3641bb2f78aaae9edcd71e79230cc9177c (diff)
downloadofono-62d4037c38f065463132b0d780781504995edc69.tar.bz2
gnss: Tweak error
Diffstat (limited to 'src/gnss.c')
-rw-r--r--src/gnss.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gnss.c b/src/gnss.c
index ba576ea5..df5b2b40 100644
--- a/src/gnss.c
+++ b/src/gnss.c
@@ -181,7 +181,7 @@ static DBusMessage *gnss_unregister_agent(DBusConnection *conn,
return __ofono_error_failed(msg);
if (!gnss_agent_matches(gnss->posr_agent, agent_path, agent_bus))
- return __ofono_error_failed(msg);
+ return __ofono_error_access_denied(msg);
gnss->pending = dbus_message_ref(msg);