Return-Path: From: Szymon Janc To: linux-bluetooth@vger.kernel.org Cc: Szymon Janc Subject: [PATCH 1/2] gdbus: Use g_dbus_create_error_valist internally Date: Tue, 7 Apr 2015 22:10:48 +0200 Message-Id: <1428437449-11210-1-git-send-email-szymon.janc@tieto.com> Sender: linux-bluetooth-owner@vger.kernel.org List-ID: There is no need to duplicate code in g_dbus_send_error_valist. --- gdbus/object.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gdbus/object.c b/gdbus/object.c index 4d5a64c..c3c137b 100644 --- a/gdbus/object.c +++ b/gdbus/object.c @@ -1530,11 +1530,8 @@ gboolean g_dbus_send_error_valist(DBusConnection *connection, const char *format, va_list args) { DBusMessage *error; - char str[1024]; - - vsnprintf(str, sizeof(str), format, args); - error = dbus_message_new_error(message, name, str); + error = g_dbus_create_error_valist(message, name, format, args); if (error == NULL) return FALSE; -- 1.9.3