X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=audiod.c;h=64ea8a51efeeb13cb65f86d1ea417120679ff2f4;hb=7fdd2f129ac59e4f57d9683e7ff0ad6076fbad23;hp=89b160db527ae9397a2bd2b216b304d6c4c8920f;hpb=fd09012ca62c214fb3e2f48935e658b885c967b6;p=paraslash.git diff --git a/audiod.c b/audiod.c index 89b160db..64ea8a51 100644 --- a/audiod.c +++ b/audiod.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2005-2010 Andre Noll + * Copyright (C) 2005-2011 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -1298,17 +1298,14 @@ __noreturn static void print_help_and_die(void) static void init_colors_or_die(void) { - int ret, i; + int i; if (!want_colors()) return; daemon_set_default_log_colors(); daemon_set_flag(DF_COLOR_LOG); - for (i = 0; i < conf.log_color_given; i++) { - ret = daemon_set_log_color(conf.log_color_arg[i]); - if (ret < 0) - exit(EXIT_FAILURE); - } + for (i = 0; i < conf.log_color_given; i++) + daemon_set_log_color_or_die(conf.log_color_arg[i]); } /**