--- src/error.c | 26 +++++++++----------------- 1 files changed, 9 insertions(+), 17 deletions(-) diff --git a/src/error.c b/src/error.c index 3c09567..0d33fb5 100644 --- a/src/error.c +++ b/src/error.c @@ -51,8 +51,7 @@ DBusHandlerResult error_common_reply(DBusConnection *conn, DBusMessage *msg, DBusMessage *btd_error_invalid_args(DBusMessage *msg) { - return g_dbus_create_error(msg, ERROR_INTERFACE - ".InvalidArguments", + return g_dbus_create_error(msg, ERROR_INTERFACE ".InvalidArguments", "Invalid arguments in method call"); } @@ -64,49 +63,42 @@ DBusMessage *btd_error_busy(DBusMessage *msg) DBusMessage *btd_error_already_exists(DBusMessage *msg) { - return g_dbus_create_error(msg, - ERROR_INTERFACE ".AlreadyExists", - "Already Exists"); + return g_dbus_create_error(msg, ERROR_INTERFACE ".AlreadyExists", + "Already Exists"); } DBusMessage *btd_error_not_supported(DBusMessage *msg) { - return g_dbus_create_error(msg, ERROR_INTERFACE - ".NotSupported", + return g_dbus_create_error(msg, ERROR_INTERFACE ".NotSupported", "Operation is not supported"); } DBusMessage *btd_error_not_connected(DBusMessage *msg) { - return g_dbus_create_error(msg, ERROR_INTERFACE - ".NotConnected", + return g_dbus_create_error(msg, ERROR_INTERFACE ".NotConnected", "Not Connected"); } DBusMessage *btd_error_in_progress(DBusMessage *msg) { - return g_dbus_create_error(msg, ERROR_INTERFACE - ".InProgress", + return g_dbus_create_error(msg, ERROR_INTERFACE ".InProgress", "In Progress"); } DBusMessage *btd_error_not_available(DBusMessage *msg) { - return g_dbus_create_error(msg, ERROR_INTERFACE - ".NotAvailable", + return g_dbus_create_error(msg, ERROR_INTERFACE ".NotAvailable", "Operation currently not available"); } DBusMessage *btd_error_does_not_exist(DBusMessage *msg) { - return g_dbus_create_error(msg, ERROR_INTERFACE - ".DoesNotExist", + return g_dbus_create_error(msg, ERROR_INTERFACE ".DoesNotExist", "Does Not Exist"); } DBusMessage *btd_error_not_authorized(DBusMessage *msg) { - return g_dbus_create_error(msg, ERROR_INTERFACE - ".NotAuthorized", + return g_dbus_create_error(msg, ERROR_INTERFACE ".NotAuthorized", "Operation Not Authorized"); } -- 1.7.3.2 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html