summaryrefslogtreecommitdiffstats
path: root/hcid/passkey-agent.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/passkey-agent.c
parent2192c176afbe573e01e63d6e557256e6d55d143f (diff)
Update return parameters of confirm method
Diffstat (limited to 'hcid/passkey-agent.c')
-rw-r--r--hcid/passkey-agent.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/hcid/passkey-agent.c b/hcid/passkey-agent.c
index 731f6611..b5aecc84 100644
--- a/hcid/passkey-agent.c
+++ b/hcid/passkey-agent.c
@@ -111,7 +111,6 @@ static DBusHandlerResult confirm_message(DBusConnection *conn,
{
DBusMessage *reply;
const char *path, *address, *value;
- dbus_bool_t result;
if (!passkey)
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
@@ -123,16 +122,13 @@ static DBusHandlerResult confirm_message(DBusConnection *conn,
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
}
- result = strcmp(value, passkey) == 0 ? TRUE : FALSE;
-
reply = dbus_message_new_method_return(msg);
if (!reply) {
fprintf(stderr, "Can't create reply message\n");
return DBUS_HANDLER_RESULT_NOT_YET_HANDLED;
}
- dbus_message_append_args(reply, DBUS_TYPE_BOOLEAN, &result,
- DBUS_TYPE_INVALID);
+ dbus_message_append_args(reply, DBUS_TYPE_INVALID);
dbus_connection_send(conn, reply, NULL);