]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - src/basic/locale-util.h
locale-util: introduce common helper locale_variables_free() for freeing locale varia...
[thirdparty/systemd.git] / src / basic / locale-util.h
index 7762254940da8749b335d696454c7c3b3c83825b..14beece6d8bd6d8e47965e5cd15ffd3f31fdc14a 100644 (file)
@@ -66,3 +66,8 @@ static inline void freelocalep(locale_t *p) {
 
         freelocale(*p);
 }
+
+void locale_variables_free(char* l[_VARIABLE_LC_MAX]);
+static inline void locale_variables_freep(char*(*l)[_VARIABLE_LC_MAX]) {
+        locale_variables_free(*l);
+}