summaryrefslogtreecommitdiff
path: root/components/volume.c
Commit message (Collapse)AuthorAgeFilesLines
* Unify type of `i` in for loopsAaron Marcher2018-05-171-2/+2
| | | | | int for normal indexes size_t for usage with the LEN macro
* Unify header includesAaron Marcher2018-05-071-4/+4
| | | | | - Sort Alphabetically - Same indentation for preprocessor clauses
* Fix coding styleAaron Marcher2018-05-061-6/+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
* volume: Cast SOUND_MIXER_READ_DEVMASK to int to avoid warning.parazyd2018-05-021-1/+1
|
* Add OpenBSD support in volume.cparazyd2018-04-291-3/+5
|
* Format error messages properlyAaron Marcher2018-03-281-3/+4
| | | | | 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-4/+3
| | | | | Replace warn() and warnx() with fprintf() and add <stdio.h> where necessary.
* More robust preprocessor switchesAaron Marcher2018-03-211-1/+1
| | | | | Replace #ifdef with #if defined() and #elif with #elif defined() as it should only test if it is defined or not.
* Build Linux-only functions only on LinuxAaron Marcher2018-03-181-0/+2
|
* Move components into dedicated subdirectoryLaslo Hunhold2017-09-241-0/+43
This brings us a lot more tidiness.