summaryrefslogtreecommitdiffstats
path: root/src/adapter.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/adapter.c')
-rw-r--r--src/adapter.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/adapter.c b/src/adapter.c
index cd14b2b7..8b76bb2e 100644
--- a/src/adapter.c
+++ b/src/adapter.c
@@ -140,6 +140,14 @@ static inline DBusMessage *unsupported_major_class(DBusMessage *msg)
"Unsupported Major Class");
}
+static DBusHandlerResult error_failed_errno(DBusConnection *conn,
+ DBusMessage *msg, int err)
+{
+ const char *desc = strerror(err);
+
+ return error_failed(conn, msg, desc);
+}
+
static int auth_req_cmp(const void *p1, const void *p2)
{
const struct pending_auth_info *pb1 = p1;