--- sbbs/src/sbbs3/scfglib2.c 2018/04/24 16:41:23 1.1.1.1 +++ sbbs/src/sbbs3/scfglib2.c 2018/04/24 16:42:49 1.1.1.2 @@ -2,13 +2,13 @@ /* Synchronet configuration library routines */ -/* $Id: scfglib2.c,v 1.1.1.1 2018/04/24 16:41:23 root Exp $ */ +/* $Id: scfglib2.c,v 1.1.1.2 2018/04/24 16:42:49 root Exp $ */ /**************************************************************************** * @format.tab-size 4 (Plain Text/Source Code File Header) * * @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) * * * - * Copyright 2004 Rob Swindell - http://www.synchro.net/copyright.html * + * Copyright 2009 Rob Swindell - http://www.synchro.net/copyright.html * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * @@ -39,13 +39,15 @@ #include "scfglib.h" /****************************************************************************/ -/* Reads in LIBS.CNF and initializes the associated variables */ +/* Reads in FILE.CNF and initializes the associated variables */ /****************************************************************************/ BOOL read_file_cfg(scfg_t* cfg, char* error) { char str[MAX_PATH+1],fname[13],c,cmd[LEN_CMD+1]; - short i,j,n; - long offset=0,t; + short i,j; + int16_t n; + long offset=0; + int32_t t; FILE *instream; strcpy(fname,"file.cnf"); @@ -426,7 +428,8 @@ BOOL read_file_cfg(scfg_t* cfg, char* er BOOL read_xtrn_cfg(scfg_t* cfg, char* error) { char str[MAX_PATH+1],fname[13],c; - short i,j,n; + short i,j; + int16_t n; long offset=0; FILE *instream; @@ -590,8 +593,9 @@ BOOL read_xtrn_cfg(scfg_t* cfg, char* er get_str(cfg->event[i]->dir,instream); get_int(cfg->event[i]->freq,instream); get_int(cfg->event[i]->mdays,instream); + get_int(cfg->event[i]->months,instream); - for(j=0;j<5;j++) + for(j=0;j<4;j++) get_int(n,instream); } cfg->total_events=i; @@ -662,7 +666,8 @@ BOOL read_xtrn_cfg(scfg_t* cfg, char* er BOOL read_chat_cfg(scfg_t* cfg, char* error) { char str[MAX_PATH+1],fname[13]; - short i,j,n; + short i,j; + int16_t n; long offset=0; FILE *instream;