[BACK]Return to config.c CVS log [TXT][DIR] Up to [local] / blind

Diff for /blind/config.c between version 1.3 and 1.5

version 1.3, 2022/03/19 06:29:08 version 1.5, 2022/03/22 02:04:40
Line 30  config_init(void)
Line 30  config_init(void)
         if ((cfg = calloc(1, sizeof(*cfg))) == NULL)          if ((cfg = calloc(1, sizeof(*cfg))) == NULL)
                 return cfg;                  return cfg;
   
         if (strlcpy(cfg->bl_sock, BL_SOCK, PATH_MAX) >= PATH_MAX)          if (strlcpy(cfg->bl_sock, BL_SOCK, PATH_MAX) >= PATH_MAX)
                 log_fatal("socket file name exceeds PATH_MAX");                  log_fatal("socket file name exceeds PATH_MAX");
   
         cfg->bl_ttl = BL_TTL;          cfg->bl_ttl = BL_TTL;
           cfg->bl_opt = BL_OPT_DEFAULT;
           cfg->bl_flg = BL_FLG_DEFAULT;
   
         return cfg;          return cfg;
 }  }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.5

https://cvs.kroczynski.net