diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2015-02-02 17:29:43 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2015-02-03 16:19:14 +0000 |
commit | 5b89e2a839b9d778cc9e4bdc156243f826e26b2b (patch) | |
tree | 7791f218fcaf8a79347f3b9ebc288478bfed9b3e /bus | |
parent | 1f716452e702159dc98af00fa7a0c6775ec8de40 (diff) | |
download | dbus-5b89e2a839b9d778cc9e4bdc156243f826e26b2b.tar.gz |
bus: put the printf attribute in the header where it will do more good
Now we can actually notice incorrect format strings in other
translation units.
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=88810
Reviewed-by: Philip Withnall
Diffstat (limited to 'bus')
-rw-r--r-- | bus/bus.c | 3 | ||||
-rw-r--r-- | bus/bus.h | 2 |
2 files changed, 1 insertions, 4 deletions
@@ -1325,9 +1325,6 @@ bus_context_get_initial_fd_limit (BusContext *context) } void -bus_context_log (BusContext *context, DBusSystemLogSeverity severity, const char *msg, ...) _DBUS_GNUC_PRINTF (3, 4); - -void bus_context_log (BusContext *context, DBusSystemLogSeverity severity, const char *msg, ...) { va_list args; @@ -120,7 +120,7 @@ DBusRLimit * bus_context_get_initial_fd_limit (BusContext void bus_context_log (BusContext *context, DBusSystemLogSeverity severity, const char *msg, - ...); + ...) _DBUS_GNUC_PRINTF (3, 4); dbus_bool_t bus_context_check_security_policy (BusContext *context, BusTransaction *transaction, DBusConnection *sender, |