chiark / gitweb /
missing.h: add more btrfs types and defines
[elogind.git] / src / shared / strv.c
index e27ac68151dd01a5966ab48c90db34420fcd2510..8c6ba6a6336c1e252218c1c8b6109b81e77e37a1 100644 (file)
@@ -19,7 +19,6 @@
   along with systemd; If not, see <http://www.gnu.org/licenses/>.
 ***/
 
-#include <assert.h>
 #include <stdlib.h>
 #include <stdarg.h>
 #include <string.h>
@@ -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) {