summaryrefslogtreecommitdiff
path: root/components/disk.c
Commit message (Collapse)AuthorAge
* Fix disk_perc by casting it to intAaron Marcher2018-05-07
|
* disk_perc: SimplifyAaron Marcher2018-05-07
|
* Fix coding styleAaron Marcher2018-05-06
| | | | | | | | | - Use block for single statement ifs - Keep lines to reasonable length (current debate as to reasonable) - When functions return -1 for error test against 0 not -1 - Do not indent cases another level - Do not test against NULL and 0 explicitly - Use tabs for indentation, use spaces for alignment
* Format error messages properlyAaron Marcher2018-03-28
| | | | | Make use of strerror(errno) and format all errors equally: function ['parameters']: error message
* Get rid of err.h as it is not portableAaron Marcher2018-03-28
| | | | | Replace warn() and warnx() with fprintf() and add <stdio.h> where necessary.
* Move components into dedicated subdirectoryLaslo Hunhold2017-09-24
This brings us a lot more tidiness.