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

Diff of /lbbs/src/article_favor.c

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

Revision 1.5 by sysadm, Fri Oct 24 02:07:01 2025 UTC Revision 1.6 by sysadm, Wed Oct 29 01:48:46 2025 UTC
# Line 508  int query_favor_articles(ARTICLE_FAVOR * Line 508  int query_favor_articles(ARTICLE_FAVOR *
508                          return -3;                          return -3;
509                  }                  }
510    
511                  // acquire lock of section                  if (get_section_info(p_section, p_snames[i], NULL, NULL) < 0)
                 if (section_list_rd_lock(p_section) < 0)  
512                  {                  {
513                          log_error("section_list_rd_lock(sid = %d) error\n", p_section->sid);                          log_error("get_section_info(sid=%d) error\n", p_section->sid);
                         return -4;  
                 }  
   
                 memcpy(p_snames[i], p_section->sname, sizeof(p_snames[i]));  
   
                 // release lock of section  
                 if (section_list_rd_unlock(p_section) < 0)  
                 {  
                         log_error("section_list_rd_unlock(sid = %d) error\n", p_section->sid);  
514                          return -4;                          return -4;
515                  }                  }
516          }          }


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

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