diff options
author | Lawrence Teo <lteo@cvs.openbsd.org> | 2014-06-05 03:36:47 +0000 |
---|---|---|
committer | Lawrence Teo <lteo@cvs.openbsd.org> | 2014-06-05 03:36:47 +0000 |
commit | 2d32938dac145ed9dd08119fd4ca8ab756e4ce24 (patch) | |
tree | ebd0f0c03b21d8dfba76ad3091ea70478c5eaa67 /usr.bin/mandoc/mandocdb.c | |
parent | c5e4dba7acbb3da88c94dddf85bbe41cdacaa411 (diff) |
Improve the divert(4) example program:
- Remove unnecessary includes
- bzero -> memset
- Better sanity checks and return value checks
- Use the tcphdr struct instead of tcpiphdr so that the program will
work even if there are IP options
- Use more conventional variable names and buffer sizes
Also add myself to the copyright.
ok deraadt@ sthen@
Diffstat (limited to 'usr.bin/mandoc/mandocdb.c')
0 files changed, 0 insertions, 0 deletions