X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshared%2Fbus-label.h;h=ed1dc4e0a7788b69483a3fc337ff27996579d913;hp=c27c8517fd41b9fafec99e6b6ae313b2fe895805;hb=f734154b8de9da6624d94c08aed86e5716dc631e;hpb=f01de9656d0969633ac89eb57a0ba4658a100568
diff --git a/src/shared/bus-label.h b/src/shared/bus-label.h
index c27c8517f..ed1dc4e0a 100644
--- a/src/shared/bus-label.h
+++ b/src/shared/bus-label.h
@@ -21,5 +21,12 @@
along with systemd; If not, see .
***/
+#include
+#include
+
char *bus_label_escape(const char *s);
-char *bus_label_unescape(const char *f);
+char *bus_label_unescape_n(const char *f, size_t l);
+
+static inline char *bus_label_unescape(const char *f) {
+ return bus_label_unescape_n(f, f ? strlen(f) : 0);
+}