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 /lib/distribute.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 'lib/distribute.c')
-rw-r--r-- | lib/distribute.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/distribute.c b/lib/distribute.c index 906e3f6d..242a225c 100644 --- a/lib/distribute.c +++ b/lib/distribute.c @@ -38,12 +38,7 @@ void (*distribute_delete_hook) (struct distribute *); static struct distribute * distribute_new (void) { - struct distribute *new; - - new = XMALLOC (MTYPE_DISTRIBUTE, sizeof (struct distribute)); - memset (new, 0, sizeof (struct distribute)); - - return new; + return XCALLOC (MTYPE_DISTRIBUTE, sizeof (struct distribute)); } /* Free distribute object. */ |