mirror of git://git.sysmocom.de/ofono
gdbus: Use g_dbus_create_error_valist internally
There is no need to duplicate code in g_dbus_send_error_valist.
This commit is contained in:
parent
73e517bcca
commit
2f75b13ecd
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue