From ac2be0137459ad623a698363786a0763fef127fb Mon Sep 17 00:00:00 2001 From: Warren Dukes Date: Wed, 3 Mar 2004 00:01:43 +0000 Subject: fix gcc-2.95 compilation errors git-svn-id: https://svn.musicpd.org/mpd/trunk@172 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/player.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/player.c') diff --git a/src/player.c b/src/player.c index e42acca18..e2212ae30 100644 --- a/src/player.c +++ b/src/player.c @@ -402,17 +402,19 @@ float getPlayerCrossFade() { } void setPlayerCrossFade(float crossFadeInSeconds) { + PlayerControl * pc; if(crossFadeInSeconds<0) crossFadeInSeconds = 0; - PlayerControl * pc = &(getPlayerData()->playerControl); + pc = &(getPlayerData()->playerControl); pc->crossFade = crossFadeInSeconds; } void setPlayerSoftwareVolume(int volume) { + PlayerControl * pc; volume = (volume>100) ? 100 : (volume<0 ? 0 : volume); - PlayerControl * pc = &(getPlayerData()->playerControl); + pc = &(getPlayerData()->playerControl); pc->softwareVolume = volume; } -- cgit v1.2.3