X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fshared%2Fstrv.c;h=8c6ba6a6336c1e252218c1c8b6109b81e77e37a1;hb=33c2ce7b200747c172d4899c717a8e9097d84659;hp=2268bf61db33ff42427b8731b60e82d2f3282ee0;hpb=bceccd5ecc393c344ab008737ba6aab211a5ea9f;p=elogind.git
diff --git a/src/shared/strv.c b/src/shared/strv.c
index 2268bf61d..8c6ba6a63 100644
--- a/src/shared/strv.c
+++ b/src/shared/strv.c
@@ -19,7 +19,6 @@
along with systemd; If not, see .
***/
-#include
#include
#include
#include
@@ -81,9 +80,10 @@ void strv_clear(char **l) {
*l = NULL;
}
-void strv_free(char **l) {
+char **strv_free(char **l) {
strv_clear(l);
free(l);
+ return NULL;
}
char **strv_copy(char * const *l) {
@@ -693,7 +693,7 @@ char **strv_reverse(char **l) {
return l;
}
-bool strv_fnmatch(const char *s, char* const* patterns, int flags) {
+bool strv_fnmatch(char* const* patterns, const char *s, int flags) {
char* const* p;
STRV_FOREACH(p, patterns)