aboutsummaryrefslogtreecommitdiffstats
path: root/src/mixer_all.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2009-07-06 21:52:10 +0200
committerMax Kellermann <max@duempel.org>2009-07-06 21:52:10 +0200
commitd3b5574d7aac0a7f2d4eb785facfad9f37c15dd5 (patch)
tree9255929810567b241a34b7c2c77479c49271b99a /src/mixer_all.h
parent90472526e00c671f76d78341b5e474fcf069d41e (diff)
downloadmpd-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 'src/mixer_all.h')
-rw-r--r--src/mixer_all.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mixer_all.h b/src/mixer_all.h
index 1f6e016df..e7c9eecc8 100644
--- a/src/mixer_all.h
+++ b/src/mixer_all.h
@@ -41,6 +41,6 @@ mixer_all_get_volume(void);
* @return true on success, false on failure
*/
bool
-mixer_all_set_volume(int volume);
+mixer_all_set_volume(unsigned volume);
#endif