diff options
Diffstat (limited to 'bgpd/bgp_clist.c')
-rw-r--r-- | bgpd/bgp_clist.c | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/bgpd/bgp_clist.c b/bgpd/bgp_clist.c index f75fc55b..dcefc29d 100644 --- a/bgpd/bgp_clist.c +++ b/bgpd/bgp_clist.c @@ -49,13 +49,9 @@ community_list_master_lookup (struct community_list_handler *ch, int master) /* Allocate a new community list entry. */ static struct community_entry * -community_entry_new () +community_entry_new (void) { - struct community_entry *new; - - new = XMALLOC (MTYPE_COMMUNITY_LIST_ENTRY, sizeof (struct community_entry)); - memset (new, 0, sizeof (struct community_entry)); - return new; + return XCALLOC (MTYPE_COMMUNITY_LIST_ENTRY, sizeof (struct community_entry)); } /* Free community list entry. */ @@ -90,13 +86,9 @@ community_entry_free (struct community_entry *entry) /* Allocate a new community-list. */ static struct community_list * -community_list_new () +community_list_new (void) { - struct community_list *new; - - new = XMALLOC (MTYPE_COMMUNITY_LIST, sizeof (struct community_list)); - memset (new, 0, sizeof (struct community_list)); - return new; + return XCALLOC (MTYPE_COMMUNITY_LIST, sizeof (struct community_list)); } /* Free community-list. */ @@ -836,6 +828,7 @@ community_list_init (void) return ch; } +#if 0 /* Terminate community-list. */ static void community_list_terminate (struct community_list_handler *ch) @@ -857,3 +850,4 @@ community_list_terminate (struct community_list_handler *ch) XFREE (MTYPE_COMMUNITY_LIST_HANDLER, ch); } +#endif |