diff options
author | luigi <luigi@FreeBSD.org> | 2004-04-21 15:27:36 +0000 |
---|---|---|
committer | luigi <luigi@FreeBSD.org> | 2004-04-21 15:27:36 +0000 |
commit | bce6deb4fb041629414c4ce802c54d07dddfaa33 (patch) | |
tree | 2caf575cff9c25d8817ae9f3211b1001ee2c184f /share | |
parent | 214b2b05ae98a5dead77bc1ba11aeea9d3401b00 (diff) | |
download | FreeBSD-src-bce6deb4fb041629414c4ce802c54d07dddfaa33.zip FreeBSD-src-bce6deb4fb041629414c4ce802c54d07dddfaa33.tar.gz |
Readability fixes:
Clearly comment the assumptions on the structure of keys (addresses)
and masks, and introduce a macro, LEN(p), to extract the size of these
objects instead of using *(u_char *)p which might be confusing.
Comment the confusion in the types used to pass around pointers
to keys and masks, as a reminder to fix that at some point.
Add a few comments on what some functions do.
Comment a probably inefficient (but still correct) section of code
in rn_walktree_from()
The object code generated after this commit is the same as before.
At some point we should also change same variable identifiers such
as "t, tt, ttt" to fancier names such as "root, left, right" (just
in case someone wants to understand the code!), replace misspelling
of NULL as 0, remove 'register' declarations that make little sense
these days.
Diffstat (limited to 'share')
0 files changed, 0 insertions, 0 deletions