From f91781329c6d8a760e3c1b88b66b0e2137c2e5ab Mon Sep 17 00:00:00 2001 From: Daniel Mack Date: Thu, 2 Apr 2015 14:15:33 +0200 Subject: bootchart: clean up sysfd and proc handling Retrieve the handle to procfs in main(), and pass it functions that need it. Kill the global variables. Also, refactor lots of code in svg_title(). There's no need to access any global variables from there either, and we really should return proper errors from there as well. --- src/bootchart/svg.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/bootchart/svg.h') diff --git a/src/bootchart/svg.h b/src/bootchart/svg.h index df3a7bf8ef..f0fb1a7ce7 100644 --- a/src/bootchart/svg.h +++ b/src/bootchart/svg.h @@ -24,4 +24,4 @@ along with systemd; If not, see . ***/ -void svg_do(const char *build); +int svg_do(const char *build); -- cgit v1.2.3-54-g00ecf