From 2b50ce8cd890cb227be62cf3b5a9e25068150e33 Mon Sep 17 00:00:00 2001 From: Dmitry Isaenko Date: Mon, 20 Nov 2017 15:50:05 +0300 Subject: [PATCH] minor updates to 1.2 --- loperIRCLogBot.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/loperIRCLogBot.c b/loperIRCLogBot.c index a803266..b8bc4f8 100644 --- a/loperIRCLogBot.c +++ b/loperIRCLogBot.c @@ -630,11 +630,11 @@ int main(int argc, char *argv[]) { } // in future define deamon mode here else if( (strcmp("-s", argv[1]) == 0) || (strcmp("--silent", argv[1]) == 0)) { - if ( (freopen ("output.txt", "ab", stdout)) == NULL ){ + if ( (freopen ("output.txt", "ab", stdout)) == NULL ){ // todo - add validation for errno printf("Unable to redirect stdout to file\n"); return 1; } - if ( (freopen ("output.txt", "ab", stderr)) == NULL ){ + if ( (freopen ("output.txt", "ab", stderr)) == NULL ){ // todo - add validation for errno printf("Unable to redirect stderr to file\n"); return 1; } @@ -663,7 +663,6 @@ int main(int argc, char *argv[]) { "Use --help for information.\n"); return 0; } - // -================================================================================================- config = load_config(0, dest); if (config.status == 0) {