treewide: cleanup malloc calls
authorRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 28 Mar 2016 17:12:10 +0000 (19:12 +0200)
committerRuben Kerkhof <ruben@rubenkerkhof.com>
Mon, 28 Mar 2016 17:12:10 +0000 (19:12 +0200)
commit1ebf2f31bd2e080e6f42de640f0a3899a61501c0
tree9d7fed6de18afbe24f6ee3c4ec36bb9db78b30b3
parent6894d846ac42cbe88073db074d75279f5a6e31b8
treewide: cleanup malloc calls

- Remove unnecessary casts
- Use the size of the variable for mallocs size
72 files changed:
src/barometer.c
src/ceph.c
src/cpu.c
src/curl.c
src/curl_json.c
src/curl_xml.c
src/daemon/common.c
src/daemon/configfile.c
src/daemon/filter_chain.c
src/daemon/meta_data.c
src/daemon/plugin.c
src/daemon/types_list.c
src/daemon/utils_avltree.c
src/daemon/utils_cache.c
src/daemon/utils_ignorelist.c
src/daemon/utils_llist.c
src/daemon/utils_match.c
src/daemon/utils_subst.c
src/daemon/utils_tail.c
src/daemon/utils_tail_match.c
src/dbi.c
src/dns.c
src/email.c
src/exec.c
src/filecount.c
src/gmond.c
src/interface.c
src/ipc.c
src/iptables.c
src/java.c
src/libcollectdclient/client.c
src/liboconfig/oconfig.c
src/liboconfig/parser.y
src/match_empty_counter.c
src/match_hashed.c
src/match_regex.c
src/match_timediff.c
src/match_value.c
src/memcachec.c
src/mysql.c
src/netapp.c
src/netlink.c
src/network.c
src/nut.c
src/onewire.c
src/openvpn.c
src/oracle.c
src/perl.c
src/ping.c
src/postgresql.c
src/powerdns.c
src/processes.c
src/rrdtool.c
src/sensors.c
src/sigrok.c
src/snmp.c
src/tail_csv.c
src/target_notification.c
src/target_replace.c
src/target_scale.c
src/target_set.c
src/tcpconns.c
src/teamspeak2.c
src/threshold.c
src/unixsock.c
src/utils_cmd_putval.c
src/utils_db_query.c
src/utils_dns.c
src/utils_mount.c
src/utils_rrdcreate.c
src/virt.c
src/zone.c