chiark / gitweb /
move _cleanup_ attribute in front of the type
[elogind.git] / src / udev / udevadm-hwdb.c
index b18b28aca72ce393cdef2c5f7583a1fb97d68475..3e849aaed6c7eda6e44f68ae7d4529ace5d06484 100644 (file)
@@ -181,9 +181,9 @@ static int trie_insert(struct trie *trie, struct trie_node *node, const char *se
                 struct trie_node *child;
 
                 for (p = 0; (c = trie->strings->buf[node->prefix_off + p]); p++) {
-                        char _cleanup_free_ *s = NULL;
+                        _cleanup_free_ char *s = NULL;
                         ssize_t off;
-                        struct trie_node _cleanup_free_ *new_child = NULL;
+                        _cleanup_free_ struct trie_node *new_child = NULL;
 
                         if (c == search[i + p])
                                 continue;