/[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.20 by sysadm, Sat Jun 14 11:57:52 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;
# Line 514  int apply_article_op_log_from_db(int op_ Line 514  int apply_article_op_log_from_db(int op_
514                                  ret = -4;                                  ret = -4;
515                          }                          }
516                          mysql_free_result(rs2);                          mysql_free_result(rs2);
517    
518                            p_article->excerption = 0; // Set excerption = 0 implicitly in case of rare condition
519                          break;                          break;
520                  case 'T': // Move article                  case 'T': // Move article
521                          snprintf(sql, sizeof(sql),                          snprintf(sql, sizeof(sql),


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

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