chiark / gitweb /
bootchart: clean up sysfd and proc handling
authorDaniel Mack <daniel@zonque.org>
Thu, 2 Apr 2015 12:15:33 +0000 (14:15 +0200)
committerDaniel Mack <daniel@zonque.org>
Fri, 3 Apr 2015 13:29:18 +0000 (15:29 +0200)
commitf91781329c6d8a760e3c1b88b66b0e2137c2e5ab
tree94a417ee58753ea5a92116d0a74ec0a3a044e825
parent34a4071e998f327945993ea6e6cbcaa0292b4093
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/bootchart.c
src/bootchart/bootchart.h
src/bootchart/store.c
src/bootchart/store.h
src/bootchart/svg.c
src/bootchart/svg.h