]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
treewide: avoid memset where it's trivial obs-knot-resolver-bs4hbr/deployments/1380
authorVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 4 Jan 2021 09:50:18 +0000 (10:50 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 13 Jan 2021 11:17:52 +0000 (12:17 +0100)
commit51b7a131cf79240f5d5350e2eaa7054d2e4f6ac0
tree2fd167e463ee287762ede39cd6c2bee35e18883e
parentb13ce190644169d639e518d2b108ac4653c18e48
treewide: avoid memset where it's trivial

More idiomatic code seems better:
- for variable initialization we have = { 0 }
- (mm_)calloc for heap allocations
  sizeof: use variable instead of type (where suitable; not sure why)
13 files changed:
daemon/ffimodule.c
daemon/worker.c
daemon/zimport.c
lib/cache/knot_pkt.c
lib/rplan.c
lib/selection.c
lib/selection_forward.c
lib/selection_iter.c
lib/utils.c
modules/bogus_log/bogus_log.c
modules/dnstap/dnstap.c
modules/stats/stats.c
tests/unit/test.h