diff options
author | Johan Hedberg <johan.hedberg@nokia.com> | 2007-02-25 21:36:30 +0000 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2007-02-25 21:36:30 +0000 |
commit | a39ff5fdec6b37bfa7d35599366c170d23fd3eb4 (patch) | |
tree | cdbb849f54afd6e633f27881ff6bb95fc2b97bc5 /hcid/dbus-security.c | |
parent | 53031087fce5c0c0a80f7a9c51e36e53333935a4 (diff) |
Use dbus_error_has_name in favor of strcmp
Diffstat (limited to 'hcid/dbus-security.c')
-rw-r--r-- | hcid/dbus-security.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |