summaryrefslogtreecommitdiff
path: root/util.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix coding styleAaron Marcher2018-05-061-1/+2
| | | | | | | | | - 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-1/+2
| | | | | 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-3/+1
| | | | | Replace warn() and warnx() with fprintf() and add <stdio.h> where necessary.
* Added LICENSE statements to all source filesAaron Marcher2017-09-171-0/+1
|
* Split into multiple filesAaron Marcher2017-09-171-0/+42
For multiple reasons the program is now split: - Make future porting to OpenBSD easier - Assign header includes to individiual functions - Make future program extensions easier - Recompile only changed parts