From a39ff5fdec6b37bfa7d35599366c170d23fd3eb4 Mon Sep 17 00:00:00 2001 From: Johan Hedberg Date: Sun, 25 Feb 2007 21:36:30 +0000 Subject: Use dbus_error_has_name in favor of strcmp --- hcid/dbus-security.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hcid/dbus-security.c b/hcid/dbus-security.c index c0b5fbbd..47429c08 100644 --- a/hcid/dbus-security.c +++ b/hcid/dbus-security.c @@ -685,7 +685,7 @@ static void auth_agent_req_reply(DBusPendingCall *call, void *data) dbus_error_init(&err); if (dbus_set_error_from_message(&err, reply)) { - if (strcmp(err.name, DBUS_ERROR_NO_REPLY) == 0) + if (dbus_error_has_name(&err, DBUS_ERROR_NO_REPLY)) auth_agent_call_cancel(req); error("Authorization agent replied with an error: %s, %s", err.name, err.message); -- cgit