/[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.23 by sysadm, Thu Jun 5 05:24:56 2025 UTC Revision 1.26 by sysadm, Tue Jun 17 13:17:04 2025 UTC
# Line 21  Line 21 
21  #include "log.h"  #include "log.h"
22  #include "io.h"  #include "io.h"
23  #include <string.h>  #include <string.h>
24    #include <strings.h>
25  #include <stdlib.h>  #include <stdlib.h>
26  #include <signal.h>  #include <signal.h>
27    #include <unistd.h>
28  #include <sys/param.h>  #include <sys/param.h>
29  #include <sys/types.h>  #include <sys/types.h>
30  #include <sys/stat.h>  #include <sys/stat.h>
 #include <unistd.h>  
31    
32  #define CONF_DELIM_WITH_SPACE " \t\r\n"  #define CONF_DELIM_WITH_SPACE " \t\r\n"
33    
# Line 130  int load_conf(const char *conf_file) Line 131  int load_conf(const char *conf_file)
131                  }                  }
132                  else if (strcasecmp(p, "bbs_port") == 0)                  else if (strcasecmp(p, "bbs_port") == 0)
133                  {                  {
134                          BBS_port = (in_port_t)atoi(q);                          BBS_port[0] = (in_port_t)atoi(q);
135                  }                  }
136                  else if (strcasecmp(p, "bbs_ssh") == 0)                  else if (strcasecmp(p, "bbs_ssh_port") == 0)
137                  {                  {
138                          SSH_v2 = (strcasecmp(q, "v2") == 0 ? 1 : 0);                          BBS_port[1] = (in_port_t)atoi(q);
139                  }                  }
140                  else if (strcasecmp(p, "bbs_max_client") == 0)                  else if (strcasecmp(p, "bbs_max_client") == 0)
141                  {                  {


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

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