From 7fd1b19bc9e9f5574f2877936b8ac267c7706947 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Thu, 18 Apr 2013 09:11:22 +0200 Subject: move _cleanup_ attribute in front of the type http://lists.freedesktop.org/archives/systemd-devel/2013-April/010510.html --- src/bootchart/store.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/bootchart/store.c') diff --git a/src/bootchart/store.c b/src/bootchart/store.c index b2652c8d93..4de187c8bc 100644 --- a/src/bootchart/store.c +++ b/src/bootchart/store.c @@ -56,7 +56,7 @@ double gettime_ns(void) { } void log_uptime(void) { - FILE _cleanup_fclose_ *f = NULL; + _cleanup_fclose_ FILE *f = NULL; char str[32]; double uptime; @@ -92,7 +92,7 @@ static char *bufgetline(char *buf) { static int pid_cmdline_strscpy(char *buffer, size_t buf_len, int pid) { char filename[PATH_MAX]; - int _cleanup_close_ fd=-1; + _cleanup_close_ int fd=-1; ssize_t n; sprintf(filename, "%d/cmdline", pid); @@ -246,7 +246,7 @@ schedstat_next: /* end of our LL? then append a new record */ if (ps->pid != pid) { - FILE _cleanup_fclose_ *st = NULL; + _cleanup_fclose_ FILE *st = NULL; char t[32]; struct ps_struct *parent; -- cgit v1.2.3-54-g00ecf