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

Diff of /lbbs/src/article_cache.c

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

Revision 1.26 by sysadm, Sun Oct 5 05:00:50 2025 UTC Revision 1.27 by sysadm, Tue Oct 14 02:39:34 2025 UTC
# Line 49  inline static int article_cache_path(cha Line 49  inline static int article_cache_path(cha
49  {  {
50          if (file_path == NULL || cache_dir == NULL || p_article == NULL)          if (file_path == NULL || cache_dir == NULL || p_article == NULL)
51          {          {
52                  log_error("article_cache_path() NULL pointer error\n");                  log_error("NULL pointer error\n");
53                  return -1;                  return -1;
54          }          }
55    
# Line 76  int article_cache_generate(const char *c Line 76  int article_cache_generate(const char *c
76    
77          if (cache_dir == NULL || p_article == NULL || content == NULL)          if (cache_dir == NULL || p_article == NULL || content == NULL)
78          {          {
79                  log_error("article_cache_generate() NULL pointer error\n");                  log_error("NULL pointer error\n");
80                  return -1;                  return -1;
81          }          }
82    
# Line 227  int article_cache_load(ARTICLE_CACHE *p_ Line 227  int article_cache_load(ARTICLE_CACHE *p_
227    
228          if (p_cache == NULL || cache_dir == NULL || p_article == NULL)          if (p_cache == NULL || cache_dir == NULL || p_article == NULL)
229          {          {
230                  log_error("article_cache_load() NULL pointer error\n");                  log_error("NULL pointer error\n");
231                  return -1;                  return -1;
232          }          }
233    
# Line 283  int article_cache_unload(ARTICLE_CACHE * Line 283  int article_cache_unload(ARTICLE_CACHE *
283  {  {
284          if (p_cache == NULL || p_cache->p_mmap == NULL)          if (p_cache == NULL || p_cache->p_mmap == NULL)
285          {          {
286                  log_error("article_cache_unload() NULL pointer error\n");                  log_error("NULL pointer error\n");
287                  return -1;                  return -1;
288          }          }
289    


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

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