]> diplodocus.org Git - nmh/commit
Add ZERO(p) for the typical memset(p, 0, sizeof *p) dance.
authorRalph Corderoy <ralph@inputplus.co.uk>
Mon, 21 Aug 2017 10:09:02 +0000 (11:09 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Tue, 22 Aug 2017 10:51:14 +0000 (11:51 +0100)
commit35ef9d158396dbf013a862dd8f830db64909826b
tree85d68ebb9e6519c9e925153d7fbba7c5569045c2
parent7d728514c2c11f194afd433445666ae6c3b7dba7
Add ZERO(p) for the typical memset(p, 0, sizeof *p) dance.

Also seen as memset(&foo->bar_xyzzy, 0, sizeof foo->bar_xyzzy).  I find
it tedious to keep checking the parameters are in agreement when reading
the code.
h/utils.h
sbr/client.c
sbr/datetime.c
sbr/dtimep.l
sbr/fmt_compile.c
sbr/fmt_scan.c
sbr/mts.c
sbr/netsec.c
uip/fmttest.c
uip/replsbr.c