chiark / gitweb /
analyze: various cleanups
authorLennart Poettering <lennart@poettering.net>
Fri, 8 Mar 2013 17:58:08 +0000 (18:58 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 8 Mar 2013 17:58:08 +0000 (18:58 +0100)
commitc170f3a41bc69ad1eab2dba40cede865f2532bbc
tree7c0d4b532f98122872dde4e5a4247848305d5888
parent5b3968b793d0a07e10df76b2fdb2081c34c22254
analyze: various cleanups

Update systemd-analyze to follow the coding style of the other tools
more closely. Also, update the CODING_STYLE to document this for future
additions.

Changes:

- Always use usec_t for time units, so that we always use the same types
  everywhere, and format times the same way as everywhere else.

- Add "static" to global variables

- Make sure we can always distuingish OOM and other errors: ensure we
  always return useful error codes from all functions.

- Always free unit_times array
CODING_STYLE
src/analyze/systemd-analyze.c