chiark / gitweb /
move _cleanup_ attribute in front of the type
[elogind.git] / src / shared / fileio.c
index 4390726a9388b19f40d0353b7f5c6687540a0c9d..2a272593a808e4d39f637b508eaf2d62326e7463 100644 (file)
@@ -544,8 +544,8 @@ static void write_env_var(FILE *f, const char *v) {
 
 int write_env_file(const char *fname, char **l) {
         char **i;
-        char _cleanup_free_ *p = NULL;
-        FILE _cleanup_fclose_ *f = NULL;
+        _cleanup_free_ char *p = NULL;
+        _cleanup_fclose_ FILE *f = NULL;
         int r;
 
         r = fopen_temporary(fname, &f, &p);