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

Diff of /lbbs/src/bbs.c

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

Revision 1.21 by sysadm, Thu Jun 5 05:24:55 2025 UTC Revision 1.23 by sysadm, Sat Jun 7 06:16:25 2025 UTC
# Line 21  Line 21 
21  #include <signal.h>  #include <signal.h>
22  #include <time.h>  #include <time.h>
23    
24    #define BBS_port_default 23
25    #define BBS_ssh_port_default 22
26    
27  // BBS enviroment  // BBS enviroment
28  char BBS_id[BBS_id_max_len + 1] = "Example BBS";  char BBS_id[BBS_id_max_len + 1] = "Example BBS";
29  char BBS_name[BBS_name_max_len + 1] = "Example Site Name";  char BBS_name[BBS_name_max_len + 1] = "Example Site Name";
30  char BBS_server[BBS_server_max_len + 1] = "bbs.example.com";  char BBS_server[BBS_server_max_len + 1] = "bbs.example.com";
31  char BBS_address[BBS_address_max_len + 1] = "0.0.0.0";  char BBS_address[BBS_address_max_len + 1] = "0.0.0.0";
32  in_port_t BBS_port = 23;  in_port_t BBS_port[2] = {BBS_port_default, BBS_ssh_port_default};
33  int BBS_max_client = MAX_CLIENT_LIMIT;  int BBS_max_client = MAX_CLIENT_LIMIT;
34  int BBS_max_client_per_ip = MAX_CLIENT_PER_IP_LIMIT;  int BBS_max_client_per_ip = MAX_CLIENT_PER_IP_LIMIT;
35  int BBS_max_user = BBS_MAX_USER_LIMIT;  int BBS_max_user = BBS_MAX_USER_LIMIT;
# Line 42  char BBS_current_section_name[BBS_sectio Line 45  char BBS_current_section_name[BBS_sectio
45    
46  char *setuserfile(char *buf, size_t len, const char *filename)  char *setuserfile(char *buf, size_t len, const char *filename)
47  {  {
48          snprintf(buf, len, "%s/%ld", filename, BBS_priv.uid);          snprintf(buf, len, "%s/%d", filename, BBS_priv.uid);
49          return buf;          return buf;
50  }  }


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

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