chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test-strv.c: test strv_join added
[elogind.git]
/
src
/
bootchart
/
svg.c
diff --git
a/src/bootchart/svg.c
b/src/bootchart/svg.c
index 156918a94bf7f79e865b0f2dda57ead92f7e795f..b9636e20a34e2a61246c6d08bb85595ecacae614 100644
(file)
--- a/
src/bootchart/svg.c
+++ b/
src/bootchart/svg.c
@@
-22,6
+22,8
@@
#include <sys/utsname.h>
#include "bootchart.h"
#include <sys/utsname.h>
#include "bootchart.h"
+#include "util.h"
+#include "macro.h"
#define time_to_graph(t) ((t) * scale_x)
#define time_to_graph(t) ((t) * scale_x)
@@
-702,7
+704,7
@@
static int ps_filter(struct ps_struct *ps)
static void svg_do_initcall(int count_only)
{
static void svg_do_initcall(int count_only)
{
- FILE
*f
;
+ FILE
_cleanup_pclose_ *f = NULL
;
double t;
char func[256];
int ret;
double t;
char func[256];
int ret;
@@
-787,8
+789,6
@@
static void svg_do_initcall(int count_only)
kcount++;
}
kcount++;
}
-
- fclose(f);
}
}