move _cleanup_ attribute in front of the type
http://lists.freedesktop.org/archives/systemd-devel/2013-April/010510.html
This commit is contained in:
@@ -76,7 +76,7 @@ static int add_modules(const char *p) {
|
||||
}
|
||||
|
||||
static int parse_proc_cmdline(void) {
|
||||
char _cleanup_free_ *line = NULL;
|
||||
_cleanup_free_ char *line = NULL;
|
||||
char *w, *state;
|
||||
int r;
|
||||
size_t l;
|
||||
@@ -91,7 +91,7 @@ static int parse_proc_cmdline(void) {
|
||||
}
|
||||
|
||||
FOREACH_WORD_QUOTED(w, l, line, state) {
|
||||
char _cleanup_free_ *word;
|
||||
_cleanup_free_ char *word;
|
||||
|
||||
word = strndup(w, l);
|
||||
if (!word)
|
||||
|
||||
Reference in New Issue
Block a user