aboutsummaryrefslogtreecommitdiffstats
path: root/src/volume.c
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2006-07-30 08:47:50 +0000
committerEric Wong <normalperson@yhbt.net>2006-07-30 08:47:50 +0000
commite86fd65c81be319c8f4848d42053084ceab9afc8 (patch)
treee31337fe239384bab16b7b889b90075fa3f8b5b9 /src/volume.c
parenta0c8e3656ba1c7c796f47f7d020f448961b1b3c5 (diff)
downloadmpd-e86fd65c81be319c8f4848d42053084ceab9afc8.tar.gz
mpd-e86fd65c81be319c8f4848d42053084ceab9afc8.tar.xz
mpd-e86fd65c81be319c8f4848d42053084ceab9afc8.zip
commandError() cleanups, fixup gcc checks
stripped binary size reduced by 9k on my machine from making commandError a function. We'll print out error messages slightly slower before, but the smaller binary is more than worth it. git-svn-id: https://svn.musicpd.org/mpd/trunk@4488 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/volume.c')
-rw-r--r--src/volume.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/volume.c b/src/volume.c
index adff103ad..7d4fce584 100644
--- a/src/volume.c
+++ b/src/volume.c
@@ -178,7 +178,7 @@ static int changeOssVolumeLevel(int fd, int change, int rel)
if (rel) {
if ((current = getOssVolumeLevel()) < 0) {
commandError(fd, ACK_ERROR_SYSTEM,
- "problem getting current volume", NULL);
+ "problem getting current volume");
return -1;
}
@@ -198,8 +198,7 @@ static int changeOssVolumeLevel(int fd, int change, int rel)
if (ioctl(volume_ossFd, MIXER_WRITE(volume_ossControl), &level) < 0) {
closeOssMixer();
- commandError(fd, ACK_ERROR_SYSTEM, "problems setting volume",
- NULL);
+ commandError(fd, ACK_ERROR_SYSTEM, "problems setting volume");
return -1;
}
@@ -361,8 +360,7 @@ static int changeAlsaVolumeLevel(int fd, int change, int rel)
if ((err =
snd_mixer_selem_set_playback_volume_all(volume_alsaElem,
level)) < 0) {
- commandError(fd, ACK_ERROR_SYSTEM, "problems setting volume",
- NULL);
+ commandError(fd, ACK_ERROR_SYSTEM, "problems setting volume");
WARNING("problems setting alsa volume: %s\n",
snd_strerror(err));
closeAlsaMixer();