From e86fd65c81be319c8f4848d42053084ceab9afc8 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 30 Jul 2006 08:47:50 +0000 Subject: 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 --- src/volume.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/volume.c') 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(); -- cgit v1.2.3