summaryrefslogtreecommitdiff
path: root/components/disk.c
Commit message (Collapse)AuthorAgeFilesLines
* corrected calculations for disk space on openbsdTobias Tschinkowitz2018-05-171-4/+4
|
* Fix indents (spaces for alignment)Aaron Marcher2018-05-071-1/+1
|
* Fix disk_perc by casting it to intAaron Marcher2018-05-071-2/+2
|
* disk_perc: SimplifyAaron Marcher2018-05-071-4/+2
|
* Fix coding styleAaron Marcher2018-05-061-3/+7
| | | | | | | | | - 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-281-4/+6
| | | | | 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-281-5/+4
| | | | | Replace warn() and warnx() with fprintf() and add <stdio.h> where necessary.
* Move components into dedicated subdirectoryLaslo Hunhold2017-09-241-0/+61
This brings us a lot more tidiness.