]> git.proxmox.com Git - mirror_iproute2.git/commit - tc/em_canid.c
Replace malloc && memset by calloc
authorPhil Sutter <phil@nwl.cc>
Mon, 18 Jul 2016 14:48:43 +0000 (16:48 +0200)
committerStephen Hemminger <shemming@brocade.com>
Wed, 20 Jul 2016 19:05:24 +0000 (12:05 -0700)
commitf89bb0210fcf7bc52f9bc743bbc92c811b1f578a
tree7de46088d17ae2485b607f0aa4b5666804a27bc6
parentd17b136f7d7dd6ed7ea518e4f068d3de735e8756
Replace malloc && memset by calloc

This only replaces occurrences where the newly allocated memory is
cleared completely afterwards, as in other cases it is a theoretical
performance hit although code would be cleaner this way.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: David Ahern <dsa@cumulusnetworks.com>
12 files changed:
genl/genl.c
lib/names.c
misc/lnstat.c
misc/lnstat_util.c
tc/em_canid.c
tc/m_action.c
tc/m_ipt.c
tc/m_pedit.c
tc/tc.c
tc/tc_bpf.c
tc/tc_class.c
tc/tc_exec.c