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

Diff of /lbbs/src/section_list_display.c

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

Revision 1.79 by sysadm, Wed Dec 3 05:31:11 2025 UTC Revision 1.83 by sysadm, Thu Dec 18 10:43:48 2025 UTC
# Line 71  enum select_cmd_t Line 71  enum select_cmd_t
71          SEARCH_USER,          SEARCH_USER,
72  };  };
73    
74  static int section_list_draw_items(int page_id, ARTICLE *p_articles[], int article_count, int display_nickname, int ontop_start_offset)  static int section_list_draw_items(int page_id, const ARTICLE *p_articles[], int article_count, int display_nickname, int ontop_start_offset)
75  {  {
76          char str_time[LINE_BUFFER_LEN];          char str_time[LINE_BUFFER_LEN];
77          struct tm tm_sub;          struct tm tm_sub;
# Line 281  static enum select_cmd_t section_list_se Line 281  static enum select_cmd_t section_list_se
281                  switch (ch)                  switch (ch)
282                  {                  {
283                  case KEY_NULL: // broken pipe                  case KEY_NULL: // broken pipe
284                          log_error("KEY_NULL\n");                          log_debug("KEY_NULL\n");
285                          return EXIT_SECTION;                          return EXIT_SECTION;
286                  case KEY_TIMEOUT:                  case KEY_TIMEOUT:
287                          if (time(NULL) - BBS_last_access_tm >= BBS_max_user_idle_time)                          if (time(NULL) - BBS_last_access_tm >= BBS_max_user_idle_time)
288                          {                          {
289                                  log_error("User input timeout\n");                                  log_debug("User input timeout\n");
290                                  return EXIT_SECTION;                                  return EXIT_SECTION;
291                          }                          }
292                          continue;                          continue;
# Line 590  int section_list_display(const char *sna Line 590  int section_list_display(const char *sna
590          char stitle[BBS_section_title_max_len + 1];          char stitle[BBS_section_title_max_len + 1];
591          char master_list[(BBS_username_max_len + 1) * 3 + 1];          char master_list[(BBS_username_max_len + 1) * 3 + 1];
592          char page_info_str[LINE_BUFFER_LEN];          char page_info_str[LINE_BUFFER_LEN];
593          ARTICLE *p_articles[BBS_article_limit_per_page];          const ARTICLE *p_articles[BBS_article_limit_per_page];
594          int article_count;          int article_count;
595          int page_count;          int page_count;
596          int ontop_start_offset;          int ontop_start_offset;
# Line 1415  int section_list_ex_dir_display(SECTION_ Line 1415  int section_list_ex_dir_display(SECTION_
1415                          switch (ch)                          switch (ch)
1416                          {                          {
1417                          case KEY_NULL: // broken pipe                          case KEY_NULL: // broken pipe
1418                                  log_error("KEY_NULL\n");                                  log_debug("KEY_NULL\n");
1419                                  loop = 0;                                  loop = 0;
1420                                  break;                                  break;
1421                          case KEY_TIMEOUT:                          case KEY_TIMEOUT:
1422                                  if (time(NULL) - BBS_last_access_tm >= BBS_max_user_idle_time)                                  if (time(NULL) - BBS_last_access_tm >= BBS_max_user_idle_time)
1423                                  {                                  {
1424                                          log_error("User input timeout\n");                                          log_debug("User input timeout\n");
1425                                          loop = 0;                                          loop = 0;
1426                                          break;                                          break;
1427                                  }                                  }


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

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