diff options
author | Daniel Mack <github@zonque.org> | 2015-08-31 08:46:48 +0200 |
---|---|---|
committer | Daniel Mack <github@zonque.org> | 2015-08-31 08:46:48 +0200 |
commit | cbb14ca063e5b3edaa7b6b90f35b40fd07362acb (patch) | |
tree | 147cc03fb7bbce320ffa200973cd4f6176d44ba3 | |
parent | dd64f53175816b9597a7b1efc21e4df4baf94c81 (diff) | |
parent | 0ba793fb8b2888e0c340fc6f054ef5e910fe48f0 (diff) |
Merge pull request #1084 from crrodriguez/master
misc bugfixes
-rw-r--r-- | src/core/selinux-setup.c | 1 | ||||
-rw-r--r-- | src/libsystemd/sd-bus/bus-match.c | 2 | ||||
-rw-r--r-- | src/locale/localed.c | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/src/core/selinux-setup.c b/src/core/selinux-setup.c index a4678500e6..e5b457643b 100644 --- a/src/core/selinux-setup.c +++ b/src/core/selinux-setup.c @@ -34,6 +34,7 @@ #include "log.h" #ifdef HAVE_SELINUX +_printf_(2,3) static int null_log(int type, const char *fmt, ...) { return 0; } diff --git a/src/libsystemd/sd-bus/bus-match.c b/src/libsystemd/sd-bus/bus-match.c index 2b83f439a7..7234e7926a 100644 --- a/src/libsystemd/sd-bus/bus-match.c +++ b/src/libsystemd/sd-bus/bus-match.c @@ -932,7 +932,7 @@ fail: } char *bus_match_to_string(struct bus_match_component *components, unsigned n_components) { - _cleanup_free_ FILE *f = NULL; + _cleanup_fclose_ FILE *f = NULL; char *buffer = NULL; size_t size = 0; unsigned i; diff --git a/src/locale/localed.c b/src/locale/localed.c index e9489f04c2..4fa84df8c0 100644 --- a/src/locale/localed.c +++ b/src/locale/localed.c @@ -1092,6 +1092,7 @@ static int method_set_vc_keyboard(sd_bus_message *m, void *userdata, sd_bus_erro } #ifdef HAVE_XKBCOMMON +_printf_(3, 0) static void log_xkb(struct xkb_context *ctx, enum xkb_log_level lvl, const char *format, va_list args) { const char *fmt; |