From f3179749aec8eec40166576bef7e0daf893939d4 Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Sun, 31 May 2020 20:51:29 -0400 Subject: New upstream version 1.1.7. --- src/config.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/config.c') diff --git a/src/config.c b/src/config.c index 7eb9b18..99e7d67 100644 --- a/src/config.c +++ b/src/config.c @@ -1,6 +1,6 @@ /* * Copyright (c) 2002 Erik Fears - * Copyright (c) 2014-2019 ircd-hybrid development team + * Copyright (c) 2014-2020 ircd-hybrid development team * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -68,7 +68,7 @@ config_setup(void) OptionsItem.command_queue_size = 64; OptionsItem.command_interval = 10; OptionsItem.command_timeout = 180; - OptionsItem.negcache = 0; /* 0 disabled negcache */ + OptionsItem.negcache = 0; /* 0 disabled negcache */ OptionsItem.negcache_rebuild = 43200; OptionsItem.pidfile = xstrdup("hopm.pid"); OptionsItem.dns_fdlimit = 50; @@ -85,7 +85,8 @@ config_load(const char *filename) strlcpy(conffilebuf, filename, sizeof(conffilebuf)); - if ((conf_file = fopen(filename, "r")) == NULL) + conf_file = fopen(filename, "r"); + if (conf_file == NULL) { log_printf("CONFIG -> Error opening %s: %s", filename, strerror(errno)); exit(EXIT_FAILURE); -- cgit v1.2.3