summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/error.c6
-rw-r--r--common/error.h2
-rw-r--r--input/device.c6
3 files changed, 6 insertions, 8 deletions
diff --git a/common/error.c b/common/error.c
index 00fa9e36..5b0fe36a 100644
--- a/common/error.c
+++ b/common/error.c
@@ -35,12 +35,6 @@
#include "error.h"
-DBusMessage *create_errno_message(DBusMessage *msg, int err)
-{
- return g_dbus_create_error(msg, ERROR_INTERFACE ".Failed",
- strerror(err));
-}
-
/**
org.bluez.Error.ConnectionAttemptFailed:
diff --git a/common/error.h b/common/error.h
index 478b0bd5..4182cfe7 100644
--- a/common/error.h
+++ b/common/error.h
@@ -27,8 +27,6 @@
#define ERROR_INTERFACE "org.bluez.Error"
-DBusMessage *create_errno_message(DBusMessage *msg, int err);
-
DBusHandlerResult error_connection_attempt_failed(DBusConnection *conn,
DBusMessage *msg,
int err);
diff --git a/input/device.c b/input/device.c
index 8f459c1d..984c35bd 100644
--- a/input/device.c
+++ b/input/device.c
@@ -795,6 +795,12 @@ static DBusMessage *device_connect(DBusConnection *conn,
return NULL;
}
+static DBusMessage *create_errno_message(DBusMessage *msg, int err)
+{
+ return g_dbus_create_error(msg, ERROR_INTERFACE ".Failed",
+ strerror(err));
+}
+
static DBusMessage *device_disconnect(DBusConnection *conn,
DBusMessage *msg, void *data)
{