diff options
author | Mike Makonnen <mtm@FreeBSD.org> | 2004-09-22 16:53:23 +0000 |
---|---|---|
committer | Mike Makonnen <mtm@FreeBSD.org> | 2004-09-22 16:53:23 +0000 |
commit | ff9af45a01e0312f2d252d06cdfefa08a2abcb37 (patch) | |
tree | 3c659c63b5b5fb7aad8bae17ea60a1e89767c367 /lib/libnetgraph/sock.c | |
parent | e0a9358679c83233e889c638e8d81abc03aa3fc3 (diff) |
The SUSv3 function say that the affected functions MAY FAIL, if the
specified mutex is invalid. In spec parlance 'MAY FAIL' means it's
up to the implementor. So, remove the check for NULL pointers for two
reasons:
1. A mutex may be invalid without necessarily being NULL.
2. If the pointer to the mutex is NULL core-dumping in the
vicinity of the problem is much much much better than failing
in some other part of the code (especially when the application
doesn't check the return value of the function that you oh so
helpfully set to EINVAL).
Notes
Notes:
svn path=/head/; revision=135575
Diffstat (limited to 'lib/libnetgraph/sock.c')
0 files changed, 0 insertions, 0 deletions