/[LeafOK_CVS]/lbbs/src/init.c
ViewVC logotype

Diff of /lbbs/src/init.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.22 by sysadm, Wed Jun 4 13:27:09 2025 UTC Revision 1.25 by sysadm, Mon Jun 16 14:30:44 2025 UTC
# Line 14  Line 14 
14   *                                                                         *   *                                                                         *
15   ***************************************************************************/   ***************************************************************************/
16    
17    #define _POSIX_C_SOURCE 200809L
18    
19  #include "init.h"  #include "init.h"
20  #include "database.h"  #include "database.h"
21  #include "bbs.h"  #include "bbs.h"
# Line 21  Line 23 
23  #include "log.h"  #include "log.h"
24  #include "io.h"  #include "io.h"
25  #include <string.h>  #include <string.h>
26    #include <strings.h>
27  #include <stdlib.h>  #include <stdlib.h>
28  #include <signal.h>  #include <signal.h>
29    #include <unistd.h>
30  #include <sys/param.h>  #include <sys/param.h>
31  #include <sys/types.h>  #include <sys/types.h>
32  #include <sys/stat.h>  #include <sys/stat.h>
 #include <unistd.h>  
33    
34  #define CONF_DELIM_WITH_SPACE " \t\r\n"  #define CONF_DELIM_WITH_SPACE " \t\r\n"
35    
# Line 130  int load_conf(const char *conf_file) Line 133  int load_conf(const char *conf_file)
133                  }                  }
134                  else if (strcasecmp(p, "bbs_port") == 0)                  else if (strcasecmp(p, "bbs_port") == 0)
135                  {                  {
136                          BBS_port = (in_port_t)atoi(q);                          BBS_port[0] = (in_port_t)atoi(q);
137                  }                  }
138                  else if (strcasecmp(p, "bbs_ssh") == 0)                  else if (strcasecmp(p, "bbs_ssh_port") == 0)
139                  {                  {
140                          BBS_ssh_v2 = (strcasecmp(q, "v2") == 0 ? 1 : 0);                          BBS_port[1] = (in_port_t)atoi(q);
141                  }                  }
142                  else if (strcasecmp(p, "bbs_max_client") == 0)                  else if (strcasecmp(p, "bbs_max_client") == 0)
143                  {                  {


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1