chiark / gitweb /
move _cleanup_ attribute in front of the type
[elogind.git] / src / shared / virt.c
index 7b18e58c166f9d4cf21cda8d35f2da8a337e60a8..1c86a3dd1e62dee901b4c482203b8b3a3e91839b 100644 (file)
@@ -168,7 +168,7 @@ int detect_vm(const char **id) {
 }
 
 int detect_container(const char **id) {
-        char _cleanup_free_ *e = NULL;
+        _cleanup_free_ char *e = NULL;
         int r;
 
         /* Unfortunately many of these operations require root access