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

Diff of /lbbs/src/article_view_log.c

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

Revision 1.1 by sysadm, Sat Jun 7 07:59:38 2025 UTC Revision 1.2 by sysadm, Sat Jun 7 08:07:07 2025 UTC
# Line 37  int article_view_log_load(int uid, ARTIC Line 37  int article_view_log_load(int uid, ARTIC
37                  return -1;                  return -1;
38          }          }
39    
40            if (uid == 0)
41            {
42                    p_view_log->aid_base_cnt = 0;
43                    p_view_log->aid_base = NULL;
44    
45                    if (!keep_inc)
46                    {
47                            p_view_log->aid_inc_cnt = 0;
48                    }
49    
50                    return 0;
51            }
52    
53          if ((db = db_open()) == NULL)          if ((db = db_open()) == NULL)
54          {          {
55                  log_error("article_view_log_load() error: Unable to open DB\n");                  log_error("article_view_log_load() error: Unable to open DB\n");
# Line 84  int article_view_log_load(int uid, ARTIC Line 97  int article_view_log_load(int uid, ARTIC
97          return 0;          return 0;
98  }  }
99    
100  int article_view_log_unload(int uid, ARTICLE_VIEW_LOG *p_view_log)  int article_view_log_unload(ARTICLE_VIEW_LOG *p_view_log)
101  {  {
102          if (p_view_log == NULL)          if (p_view_log == NULL)
103          {          {


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

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