ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/svn/ircd-hybrid/branches/8.2.x/src/conf.c
(Generate patch)

Comparing ircd-hybrid/branches/8.2.x/src/conf.c (file contents):
Revision 8624 by michael, Sat Nov 3 18:40:25 2018 UTC vs.
Revision 8655 by michael, Sun Nov 11 20:18:54 2018 UTC

# Line 707 | Line 707 | conf_rehash(int sig)
707  
708    /* don't close listeners until we know we can go ahead with the rehash */
709  
710 <  read_conf_files(0);
710 >  read_conf_files(false);
711  
712    load_conf_modules();
713    check_conf_klines();
# Line 1001 | Line 1001 | clear_out_old_conf(void)
1001   }
1002  
1003   static void
1004 < conf_handle_tls(int cold)
1004 > conf_handle_tls(bool cold)
1005   {
1006    if (!tls_new_cred())
1007    {
1008 <    if (cold)
1008 >    if (cold == true)
1009      {
1010        ilog(LOG_TYPE_IRCD, "Error while initializing TLS");
1011        exit(EXIT_FAILURE);
# Line 1026 | Line 1026 | conf_handle_tls(int cold)
1026   * side effects - read all conf files needed, ircd.conf kline.conf etc.
1027   */
1028   void
1029 < read_conf_files(int cold)
1029 > read_conf_files(bool cold)
1030   {
1031    const char *filename = NULL;
1032    char chanmodes[IRCD_BUFSIZE] = "";
# Line 1045 | Line 1045 | read_conf_files(int cold)
1045  
1046    if ((conf_parser_ctx.conf_file = fopen(filename, "r")) == NULL)
1047    {
1048 <    if (cold)
1048 >    if (cold == true)
1049      {
1050        ilog(LOG_TYPE_IRCD, "Unable to read configuration file '%s': %s",
1051             filename, strerror(errno));
# Line 1060 | Line 1060 | read_conf_files(int cold)
1060      }
1061    }
1062  
1063 <  if (!cold)
1063 >  if (cold == false)
1064      clear_out_old_conf();
1065  
1066    read_conf(conf_parser_ctx.conf_file);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines