From 0f2e9ee6623ab30c190dfc5c575922af1990c9d9 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 27 Aug 2007 08:05:55 +0000 Subject: export FATAL() with noreturn attribute This attribute was set in log.c, but not exported to other modules in log.h This allows us to remove some unneccessary variable initializations that were added in r6277. I did audioOutput_shout.c a bit differently, to avoid some jumps. before: $ size src/mpd text data bss dec hex filename 225546 4040 14600 244186 3b9da src/mpd after: $ size src/mpd text data bss dec hex filename 224698 4040 14600 243338 3b68a src/mpd git-svn-id: https://svn.musicpd.org/mpd/trunk@6821 09075e82-0dd4-0310-85a5-a0d7c8717e4f --- src/audioOutputs/audioOutput_shout.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/audioOutputs') diff --git a/src/audioOutputs/audioOutput_shout.c b/src/audioOutputs/audioOutput_shout.c index 294d6a152..a58ece755 100644 --- a/src/audioOutputs/audioOutput_shout.c +++ b/src/audioOutputs/audioOutput_shout.c @@ -158,9 +158,7 @@ static int myShout_initDriver(AudioOutput * audioOutput, ConfigParam * param) if (blockParam) { if (0 == strcmp(blockParam->value, "yes")) { public = 1; - } else if (0 == strcmp(blockParam->value, "no")) { - public = 0; - } else { + } else if (strcmp(blockParam->value, "no")) { FATAL("public \"%s\" is not \"yes\" or \"no\" at line " "%i\n", param->value, param->line); } -- cgit v1.2.3