summaryrefslogtreecommitdiffstats
path: root/sys/sys/socketvar.h
diff options
context:
space:
mode:
Diffstat (limited to 'sys/sys/socketvar.h')
-rw-r--r--sys/sys/socketvar.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/sys/socketvar.h b/sys/sys/socketvar.h
index 6b22cfd..6b715f2 100644
--- a/sys/sys/socketvar.h
+++ b/sys/sys/socketvar.h
@@ -253,7 +253,7 @@ struct xsocket {
* Returns error without lock if sleep is interrupted.
*/
#define sblock(sb, wf) ((sb)->sb_flags & SB_LOCK ? \
- (((wf) == M_WAITOK) ? sb_lock(sb) : EWOULDBLOCK) : \
+ (((wf) == 0) ? sb_lock(sb) : EWOULDBLOCK) : \
((sb)->sb_flags |= SB_LOCK), 0)
/* release lock on sockbuf sb */
OpenPOWER on IntegriCloud