summaryrefslogtreecommitdiff
path: root/src/bootchart/store.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bootchart/store.c')
-rw-r--r--src/bootchart/store.c6
1 files changed, 3 insertions, 3 deletions
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;