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

Diff of /lbbs/src/user_list.c

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

Revision 1.40 by sysadm, Thu Nov 20 02:56:46 2025 UTC Revision 1.41 by sysadm, Thu Nov 20 03:22:35 2025 UTC
# Line 58  struct user_list_pool_t Line 58  struct user_list_pool_t
58  };  };
59  typedef struct user_list_pool_t USER_LIST_POOL;  typedef struct user_list_pool_t USER_LIST_POOL;
60    
61  static char user_list_shm_name[FILE_PATH_LEN];  static char user_list_shm_name[FILE_NAME_LEN];
62  static USER_LIST_POOL *p_user_list_pool = NULL;  static USER_LIST_POOL *p_user_list_pool = NULL;
63  static TRIE_NODE *p_trie_action_dict = NULL;  static TRIE_NODE *p_trie_action_dict = NULL;
64    
# Line 507  int user_list_pool_init(const char *file Line 507  int user_list_pool_init(const char *file
507          return 0;          return 0;
508  }  }
509    
510  int user_list_pool_cleanup(void)  void user_list_pool_cleanup(void)
511  {  {
512          if (p_user_list_pool == NULL)          if (p_user_list_pool == NULL)
513          {          {
514                  return -1;                  return;
515          }          }
516    
517          if (semctl(p_user_list_pool->semid, 0, IPC_RMID) == -1)          if (semctl(p_user_list_pool->semid, 0, IPC_RMID) == -1)
# Line 534  int user_list_pool_cleanup(void) Line 534  int user_list_pool_cleanup(void)
534    
535                  p_trie_action_dict = NULL;                  p_trie_action_dict = NULL;
536          }          }
   
         return 0;  
537  }  }
538    
539  int set_user_list_pool_shm_readonly(void)  int set_user_list_pool_shm_readonly(void)


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

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