OSDN Git Service
(root)
/
android-x86
/
external-bluetooth-bluez.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22f1178
)
tools: Fix format string warnings for g_dbus_create_error
author
Chan-yeol Park
<chanyeol.park@samsung.com>
Fri, 25 Jan 2013 09:28:10 +0000
(18:28 +0900)
committer
Luiz Augusto von Dentz
<luiz.von.dentz@intel.com>
Fri, 25 Jan 2013 09:52:40 +0000
(11:52 +0200)
This patch fixes gcc warnings for "format not a string literal and no
format arguments".
tools/mpris-player.c
patch
|
blob
|
history
diff --git
a/tools/mpris-player.c
b/tools/mpris-player.c
index
95ef8ab
..
aafa142
100644
(file)
--- a/
tools/mpris-player.c
+++ b/
tools/mpris-player.c
@@
-830,7
+830,7
@@
static void player_reply(DBusMessage *message, void *user_data)
dbus_error_init(&err);
if (dbus_set_error_from_message(&err, message)) {
fprintf(stderr, "error: %s", err.name);
- reply = g_dbus_create_error(msg, err.name, err.message);
+ reply = g_dbus_create_error(msg, err.name,
"%s",
err.message);
dbus_error_free(&err);
} else
reply = g_dbus_create_reply(msg, DBUS_TYPE_INVALID);