summaryrefslogtreecommitdiffstats
path: root/src/config.c
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2020-05-31 20:51:29 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2020-05-31 20:51:29 -0400
commitf3179749aec8eec40166576bef7e0daf893939d4 (patch)
tree44014ef5795e7124aa9e6aa007836b448475d01f /src/config.c
parentbe04bd20400b39d225b79691df0e2254a96b8564 (diff)
New upstream version 1.1.7.upstream/1.1.7
Diffstat (limited to 'src/config.c')
-rw-r--r--src/config.c7
1 files changed, 4 insertions, 3 deletions
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);