projects
/
platform
/
upstream
/
ofono.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
73e517b
)
gdbus: Use g_dbus_create_error_valist internally
author
Szymon Janc
<szymon.janc@tieto.com>
Tue, 7 Apr 2015 19:57:19 +0000
(21:57 +0200)
committer
Marcel Holtmann
<marcel@holtmann.org>
Thu, 9 Apr 2015 14:59:08 +0000
(16:59 +0200)
There is no need to duplicate code in g_dbus_send_error_valist.
gdbus/object.c
patch
|
blob
|
history
diff --git
a/gdbus/object.c
b/gdbus/object.c
index b62c062a6f211e6d2245d1eef05cf7b1eb6f7e53..0f42dadf3e3ad041aef99f62843993ff30d446b9 100644
(file)
--- 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;