summaryrefslogtreecommitdiffstats
path: root/hcid/dbus-security.c
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2006-10-31 20:05:23 +0000
committerMarcel Holtmann <marcel@holtmann.org>2006-10-31 20:05:23 +0000
commitd942b3e721d32a932a39ce818f7b143ed2d7900f (patch)
treed56876dcd105d454c8c57ca9c9c201382b1b729f /hcid/dbus-security.c
parent2192c176afbe573e01e63d6e557256e6d55d143f (diff)
Update return parameters of confirm method
Diffstat (limited to 'hcid/dbus-security.c')
-rw-r--r--hcid/dbus-security.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/hcid/dbus-security.c b/hcid/dbus-security.c
index 022d32fd..ae93aadf 100644
--- a/hcid/dbus-security.c
+++ b/hcid/dbus-security.c
@@ -865,7 +865,6 @@ static void confirm_agent_reply(DBusPendingCall *call, void *user_data)
pin_code_reply_cp pr;
DBusMessage *message;
DBusError err;
- dbus_bool_t result;
int len;
/* steal_reply will always return non-NULL since the callback
@@ -883,17 +882,12 @@ static void confirm_agent_reply(DBusPendingCall *call, void *user_data)
}
dbus_error_init(&err);
- if (!dbus_message_get_args(message, &err,
- DBUS_TYPE_BOOLEAN, &result,
- DBUS_TYPE_INVALID)) {
- error("Wrong passkey reply signature: %s", err.message);
+ if (!dbus_message_get_args(message, &err, DBUS_TYPE_INVALID)) {
+ error("Wrong confirm reply signature: %s", err.message);
dbus_error_free(&err);
goto fail;
}
- if (result == FALSE)
- goto fail;
-
len = strlen(req->pin);
set_pin_length(&req->sba, len);