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

Diff of /lbbs/src/section_list_loader.c

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

Revision 1.21 by sysadm, Sun Jun 15 02:24:45 2025 UTC Revision 1.22 by sysadm, Mon Jun 16 14:30:44 2025 UTC
# Line 14  Line 14 
14   *                                                                         *   *                                                                         *
15   ***************************************************************************/   ***************************************************************************/
16    
17    #define _POSIX_C_SOURCE 200809L
18    
19  #include "section_list_loader.h"  #include "section_list_loader.h"
20  #include "article_cache.h"  #include "article_cache.h"
21  #include "bbs.h"  #include "bbs.h"
# Line 25  Line 27 
27  #include <errno.h>  #include <errno.h>
28  #include <signal.h>  #include <signal.h>
29  #include <stdlib.h>  #include <stdlib.h>
30    #include <string.h>
31  #include <strings.h>  #include <strings.h>
32  #include <unistd.h>  #include <unistd.h>
33    
 #define _POSIX_C_SOURCE 200809L  
 #include <string.h>  
   
34  int section_list_loader_pid;  int section_list_loader_pid;
35  int last_article_op_log_mid;  int last_article_op_log_mid;
36    
# Line 211  int append_articles_from_db(int32_t star Line 211  int append_articles_from_db(int32_t star
211    
212          while ((row = mysql_fetch_row(rs)))          while ((row = mysql_fetch_row(rs)))
213          {          {
214                  bzero(&article, sizeof(ARTICLE));                  memset(&article, 0, sizeof(ARTICLE));
215    
216                  // copy data of article                  // copy data of article
217                  i = 0;                  i = 0;


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

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