/[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.40 by sysadm, Mon Oct 13 02:23:27 2025 UTC Revision 1.42 by sysadm, Tue Oct 14 02:39:34 2025 UTC
# Line 664  void section_list_reset_articles(SECTION Line 664  void section_list_reset_articles(SECTION
664          p_section->ontop_article_count = 0;          p_section->ontop_article_count = 0;
665  }  }
666    
667  SECTION_LIST *section_list_find_by_name(const char *sname, int64_t *p_index)  SECTION_LIST *section_list_find_by_name(const char *sname)
668  {  {
669          int64_t index;          int64_t index;
670          int ret;          int ret;
# Line 686  SECTION_LIST *section_list_find_by_name( Line 686  SECTION_LIST *section_list_find_by_name(
686                  return NULL;                  return NULL;
687          }          }
688    
         if (p_index != NULL)  
         {  
                 *p_index = index;  
         }  
   
689          return (p_section_list_pool->sections + index);          return (p_section_list_pool->sections + index);
690  }  }
691    
692  SECTION_LIST *section_list_find_by_sid(int32_t sid, int64_t *p_index)  SECTION_LIST *section_list_find_by_sid(int32_t sid)
693  {  {
694          int64_t index;          int64_t index;
695          int ret;          int ret;
# Line 719  SECTION_LIST *section_list_find_by_sid(i Line 714  SECTION_LIST *section_list_find_by_sid(i
714                  return NULL;                  return NULL;
715          }          }
716    
         if (p_index != NULL)  
         {  
                 *p_index = index;  
         }  
   
717          return (p_section_list_pool->sections + index);          return (p_section_list_pool->sections + index);
718  }  }
719    
# Line 737  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 1072  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 1164  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 1323  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