[dhcp-agent-commits] dhcp-agent/src dhcp-cache-entry.c,1.4,1.5 dhcp-cache-entry.h,1.3,1.4
Status: Alpha
Brought to you by:
actmodern
From: <act...@us...> - 2002-12-16 10:04:37
|
Update of /cvsroot/dhcp-agent/dhcp-agent/src In directory sc8-pr-cvs1:/tmp/cvs-serv4499 Modified Files: dhcp-cache-entry.c dhcp-cache-entry.h Log Message: renamed with proper convention Index: dhcp-cache-entry.c =================================================================== RCS file: /cvsroot/dhcp-agent/dhcp-agent/src/dhcp-cache-entry.c,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** dhcp-cache-entry.c 22 Nov 2002 15:30:37 -0000 1.4 --- dhcp-cache-entry.c 16 Dec 2002 10:04:32 -0000 1.5 *************** *** 34,38 **** #include "dhcp-cache-entry.h" ! /* constructors. */ cache_entry_t *create_cache_entry(uint8_t tag, const char *name, const char *value) { --- 34,41 ---- #include "dhcp-cache-entry.h" ! /* * * * * * * * * * * * * * * ! * constructors/destructors * ! * * * * * * * * * * * * * * */ ! cache_entry_t *create_cache_entry(uint8_t tag, const char *name, const char *value) { *************** *** 47,51 **** } ! void destroy_cache_entry(cache_entry_t *cache) { xfree(cache->name); --- 50,54 ---- } ! void cache_entry_destroy(cache_entry_t *cache) { xfree(cache->name); *************** *** 57,63 **** /* use alongside purge_list or similar routines. */ ! static void destroy_cache_entry_in_list(void *data) { ! destroy_cache_entry(data); } --- 60,66 ---- /* use alongside purge_list or similar routines. */ ! static void cache_entry_destroy_l(void *data) { ! cache_entry_destroy(data); } *************** *** 65,69 **** void cache_entry_purge_list(list_t *cache_list) { ! purge_list(cache_list, destroy_cache_entry_in_list); return; } --- 68,72 ---- void cache_entry_purge_list(list_t *cache_list) { ! purge_list(cache_list, cache_entry_destroy_l); return; } Index: dhcp-cache-entry.h =================================================================== RCS file: /cvsroot/dhcp-agent/dhcp-agent/src/dhcp-cache-entry.h,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** dhcp-cache-entry.h 22 Nov 2002 15:30:37 -0000 1.3 --- dhcp-cache-entry.h 16 Dec 2002 10:04:33 -0000 1.4 *************** *** 33,37 **** extern cache_entry_t *create_cache_entry(uint8_t tag, const char *name, const char *value); ! extern void destroy_cache_entry(cache_entry_t *cache); extern void cache_entry_purge_list(list_t *cache_list); --- 33,37 ---- extern cache_entry_t *create_cache_entry(uint8_t tag, const char *name, const char *value); ! extern void cache_entry_destroy(cache_entry_t *cache); extern void cache_entry_purge_list(list_t *cache_list); |