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

Diff of /lbbs/src/section_list.c

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

Revision 1.38 by sysadm, Wed Jul 23 01:15:21 2025 UTC Revision 1.42 by sysadm, Tue Oct 14 02:39:34 2025 UTC
# Line 727  int section_list_append_article(SECTION_ Line 727  int section_list_append_article(SECTION_
727    
728          if (p_section == NULL || p_article_src == NULL)          if (p_section == NULL || p_article_src == NULL)
729          {          {
730                  log_error("section_list_append_article() NULL pointer error\n");                  log_error("NULL pointer error\n");
731                  return -1;                  return -1;
732          }          }
733    
# Line 1023  int section_list_page_count_with_ontop(S Line 1023  int section_list_page_count_with_ontop(S
1023                  return -1;                  return -1;
1024          }          }
1025    
1026          page_count = p_section->page_count - 1 +          page_count = p_section->page_count - (p_section->last_page_visible_article_count > 0 ? 1 : 0) +
1027                                   (p_section->last_page_visible_article_count + p_section->ontop_article_count) / BBS_article_limit_per_page +                                   (p_section->last_page_visible_article_count + p_section->ontop_article_count) / BBS_article_limit_per_page +
1028                                   ((p_section->last_page_visible_article_count + p_section->ontop_article_count) % BBS_article_limit_per_page == 0 ? 0 : 1);                                   ((p_section->last_page_visible_article_count + p_section->ontop_article_count) % BBS_article_limit_per_page == 0 ? 0 : 1);
1029    
# Line 1062  ARTICLE *section_list_find_article_with_ Line 1062  ARTICLE *section_list_find_article_with_
1062    
1063          if (p_section == NULL)          if (p_section == NULL)
1064          {          {
1065                  log_error("section_list_find_article_with_offset() NULL pointer error\n");                  log_error("NULL pointer error\n");
1066                  return NULL;                  return NULL;
1067          }          }
1068    
# Line 1154  int section_list_calculate_page(SECTION_ Line 1154  int section_list_calculate_page(SECTION_
1154    
1155          if (p_section == NULL)          if (p_section == NULL)
1156          {          {
1157                  log_error("section_list_calculate_page() NULL pointer error\n");                  log_error("NULL pointer error\n");
1158                  return -1;                  return -1;
1159          }          }
1160    
# Line 1313  int section_list_move_topic(SECTION_LIST Line 1313  int section_list_move_topic(SECTION_LIST
1313    
1314          if (p_section_src == NULL || p_section_dest == NULL)          if (p_section_src == NULL || p_section_dest == NULL)
1315          {          {
1316                  log_error("section_list_move_topic() NULL pointer error\n");                  log_error("NULL pointer error\n");
1317                  return -1;                  return -1;
1318          }          }
1319    


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

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