diff options
author | Max Kellermann <max@duempel.org> | 2009-07-06 21:52:10 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-07-06 21:52:10 +0200 |
commit | d3b5574d7aac0a7f2d4eb785facfad9f37c15dd5 (patch) | |
tree | 9255929810567b241a34b7c2c77479c49271b99a /src/volume.h | |
parent | 90472526e00c671f76d78341b5e474fcf069d41e (diff) | |
download | mpd-d3b5574d7aac0a7f2d4eb785facfad9f37c15dd5.tar.gz mpd-d3b5574d7aac0a7f2d4eb785facfad9f37c15dd5.tar.xz mpd-d3b5574d7aac0a7f2d4eb785facfad9f37c15dd5.zip |
volume: moved range check to handle_setvol()
Converted the range checks in volume_level_change() to assertions.
Changed all volume types to "unsigned", expect for those which must be
able to indicate error (-1).
Diffstat (limited to '')
-rw-r--r-- | src/volume.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/volume.h b/src/volume.h index 035d7215b..352d36168 100644 --- a/src/volume.h +++ b/src/volume.h @@ -29,7 +29,7 @@ void volume_finish(void); int volume_level_get(void); -bool volume_level_change(int volume); +bool volume_level_change(unsigned volume); void read_sw_volume_state(FILE *fp); |