diff options
author | ngie <ngie@FreeBSD.org> | 2015-12-28 02:18:22 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2015-12-28 02:18:22 +0000 |
commit | 5fb486358b50fc6bb41e74a349c02631eaf26739 (patch) | |
tree | 43d321f50e42c0fee1bdc451d2e4fc9d3391367e /tests/sys/kern/unix_seqpacket_test.c | |
parent | b86a316862c28f6df2823ebbbf8feab6a618e5f0 (diff) | |
download | FreeBSD-src-5fb486358b50fc6bb41e74a349c02631eaf26739.zip FreeBSD-src-5fb486358b50fc6bb41e74a349c02631eaf26739.tar.gz |
Fix style(9) a bit and ensure that error from initializing kqueue(2) is
sane
- Push the kqueue(2) initialization down so the errno will correspond with
the failure instead of potentially being stomped on by functions called
by `PLAIN_REQUIRE_KERNEL_MODULE`
- Delete trailing whitespace
- Add spaces between braces for conditional and control blocks (for/if)
- Use err/errx instead of perror+printf+exit/printf+exit.
- Remove braces for single-line conditionals
Tested with and without -DDEBUG
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
Diffstat (limited to 'tests/sys/kern/unix_seqpacket_test.c')
0 files changed, 0 insertions, 0 deletions