diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2013-03-06 14:44:51 +0100 |
---|---|---|
committer | Michal Schmidt <mschmidt@redhat.com> | 2013-03-08 10:09:31 +0100 |
commit | a740c14c59907f370a6b3a3ba5a86fada88cb07e (patch) | |
tree | 6626ba3154af9ac3f050a53149586f0bf305befa /src/shared/strv.h | |
parent | 5f1be48b264e4d556f688062cc6f4a1e03f9f455 (diff) |
shared: inline trivial auto-cleanup functions
Diffstat (limited to 'src/shared/strv.h')
-rw-r--r-- | src/shared/strv.h | 5 |
1 files changed, 4 insertions, 1 deletions
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); |