From 3cb063fdb27ac31de436c54357768564f3d4d238 Mon Sep 17 00:00:00 2001 From: Cristian Rodríguez Date: Mon, 17 Aug 2015 18:22:24 -0300 Subject: locale: add printf attribute to log_xkb() --- src/locale/localed.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; -- cgit v1.2.3-54-g00ecf From 82613b14ba10706da0f89774dc82d33a04fe5290 Mon Sep 17 00:00:00 2001 From: Cristian Rodríguez Date: Mon, 17 Aug 2015 18:23:31 -0300 Subject: core: add attribute printf to null_log() --- src/core/selinux-setup.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; } -- cgit v1.2.3-54-g00ecf From 0ba793fb8b2888e0c340fc6f054ef5e910fe48f0 Mon Sep 17 00:00:00 2001 From: Cristian Rodríguez Date: Sun, 30 Aug 2015 18:19:34 -0300 Subject: sd-bus: Fix incorrect cleanup attribute in bus_match_to_string() Must be _cleanup_fclose_ not _cleanup_free_ --- src/libsystemd/sd-bus/bus-match.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-54-g00ecf