From a740c14c59907f370a6b3a3ba5a86fada88cb07e Mon Sep 17 00:00:00 2001 From: Michal Schmidt Date: Wed, 6 Mar 2013 14:44:51 +0100 Subject: shared: inline trivial auto-cleanup functions --- src/shared/strv.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/shared/strv.h') diff --git a/src/shared/strv.h b/src/shared/strv.h index 623f10216d..da9fae6edb 100644 --- a/src/shared/strv.h +++ b/src/shared/strv.h @@ -30,7 +30,10 @@ char *strv_find(char **l, const char *name); char *strv_find_prefix(char **l, const char *name); void strv_free(char **l); -void strv_freep(char ***l); +static inline void strv_freep(char ***l) { + strv_free(*l); +} + char **strv_copy(char **l) _malloc_; unsigned strv_length(char **l); -- cgit v1.2.3-54-g00ecf