chiark
/
gitweb
/
~mdw
/
secnet
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from:
076bb54
)
cleanup: provide helpful FILLZERO macro (for certain memset calls)
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 13 Jul 2011 22:59:17 +0000
(23:59 +0100)
committer
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Wed, 17 Aug 2011 22:03:28 +0000
(23:03 +0100)
This macro replaces these idioms:
memset(&foo,0,sizeof(foo)); => FILLZERO(foo);
memset(foo,0,sizeof(*foo)); => FILLZERO(*foo);
This makes it impossible to accidentally get the wrong size.
Use this macro in all such patterns in secnet, apart from two in
site.c which are going to be removed soon anyway.
No intentional functional change.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
No differences found