]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/libsystemd/sd-bus/bus-match.c
util-lib: split our string related calls from util.[ch] into its own file string...
[thirdparty/systemd.git] / src / libsystemd / sd-bus / bus-match.c
index 2b83f439a7ba49f1d3f7582646a5d41c4e329535..efab756ef4a79810f482b2a63c8a9dbb8d9a25f4 100644 (file)
 
 #include "bus-internal.h"
 #include "bus-message.h"
-#include "bus-match.h"
 #include "bus-util.h"
+#include "string-util.h"
 #include "strv.h"
+#include "bus-match.h"
 
 /* Example:
  *
@@ -932,7 +933,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;