X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=server.c;h=849b707a43043a501ab92cadbed6af66f725a139;hp=48ef55e84e7afdbbf13b4f0cd0383c1c837d60fc;hb=481150224edabeee0a6bbfdab232df58e5c1224e;hpb=90560de0d7e4d825772270f9ac7cbefbb38aad97 diff --git a/server.c b/server.c index 48ef55e8..849b707a 100644 --- a/server.c +++ b/server.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 1997-2010 Andre Noll + * Copyright (C) 1997-2011 Andre Noll * * Licensed under the GPL v2. For licencing details see COPYING. */ @@ -68,6 +68,7 @@ #include #include #include +#include #include "para.h" #include "error.h" @@ -146,17 +147,14 @@ static int want_colors(void) static void init_colors_or_die(void) { - int ret, i; + int i; if (!want_colors()) return; daemon_set_flag(DF_COLOR_LOG); daemon_set_default_log_colors(); - 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]); } /*