diff options
author | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-08-18 14:13:29 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen.hemminger@vyatta.com> | 2008-08-18 14:13:29 -0700 |
commit | aa990a9f58b5f46da95eb360049577a8833d649e (patch) | |
tree | faeff19a39b9c1df101fe381920e52178011e99a /ripd/rip_offset.c | |
parent | e5d63369e1f3fdc1c22ae15fe477de1f97022703 (diff) | |
download | quagga-aa990a9f58b5f46da95eb360049577a8833d649e.tar.bz2 quagga-aa990a9f58b5f46da95eb360049577a8833d649e.tar.xz |
Use XCALLOC
Replace calls to XMALLOC followed by memset with XCALLOC.
Diffstat (limited to 'ripd/rip_offset.c')
-rw-r--r-- | ripd/rip_offset.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/ripd/rip_offset.c b/ripd/rip_offset.c index e7d71f6c..0155f90e 100644 --- a/ripd/rip_offset.c +++ b/ripd/rip_offset.c @@ -63,11 +63,7 @@ strcmp_safe (const char *s1, const char *s2) static struct rip_offset_list * rip_offset_list_new (void) { - struct rip_offset_list *new; - - new = XMALLOC (MTYPE_RIP_OFFSET_LIST, sizeof (struct rip_offset_list)); - memset (new, 0, sizeof (struct rip_offset_list)); - return new; + return XCALLOC (MTYPE_RIP_OFFSET_LIST, sizeof (struct rip_offset_list)); } static void |