diff options
| author | 2020-05-31 20:51:36 -0400 | |
|---|---|---|
| committer | 2020-05-31 20:51:36 -0400 | |
| commit | 7c45cfc103e49840fd49b54ebc0a34c88a623f01 (patch) | |
| tree | 5025e7a9c40d329bc505cdd4396fe44786f77faa /src/config.c | |
| parent | 34ef1f25a6bb7f52d230885eb95f4b11a388412b (diff) | |
| parent | f3179749aec8eec40166576bef7e0daf893939d4 (diff) | |
Update upstream source from tag 'upstream/1.1.7'
Update to upstream version '1.1.7'
with Debian dir 4ddb09241810e51ff3dfee9af3e56a170c38f1e5
Diffstat (limited to 'src/config.c')
| -rw-r--r-- | src/config.c | 7 |
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); |
