/[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.15 by sysadm, Sun May 4 14:54:55 2025 UTC Revision 1.17 by sysadm, Mon May 5 14:27:57 2025 UTC
# Line 104  int load_conf(const char *conf_file) Line 104  int load_conf(const char *conf_file)
104                  }                  }
105                  if (strcmp(c_name, "bbs_port") == 0)                  if (strcmp(c_name, "bbs_port") == 0)
106                  {                  {
107                          fscanf(fin, "%ud", &BBS_port);                          fscanf(fin, "%hu", &BBS_port);
108                  }                  }
109                  if (strcmp(c_name, "bbs_max_client") == 0)                  if (strcmp(c_name, "bbs_max_client") == 0)
110                  {                  {
# Line 118  int load_conf(const char *conf_file) Line 118  int load_conf(const char *conf_file)
118                  {                  {
119                          int y = 0, m = 0, d = 0;                          int y = 0, m = 0, d = 0;
120                          fscanf(fin, "%d-%d-%d", &y, &m, &d);                          fscanf(fin, "%d-%d-%d", &y, &m, &d);
121                          sprintf(BBS_start_dt, "%4d年%2d月%2d日", y, m, d);                          snprintf(BBS_start_dt, sizeof(BBS_start_dt), "%4d年%2d月%2d日", y, m, d);
122                  }                  }
123                  if (strcmp(c_name, "db_host") == 0)                  if (strcmp(c_name, "db_host") == 0)
124                  {                  {


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

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