summaryrefslogtreecommitdiff
path: root/sys/kern/subr_log.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/subr_log.c')
-rw-r--r--sys/kern/subr_log.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_log.c b/sys/kern/subr_log.c
index 4f2b924a4e5..9455332d8b5 100644
--- a/sys/kern/subr_log.c
+++ b/sys/kern/subr_log.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: subr_log.c,v 1.43 2016/05/18 23:42:12 bluhm Exp $ */
+/* $OpenBSD: subr_log.c,v 1.44 2016/05/19 09:40:30 bluhm Exp $ */
/* $NetBSD: subr_log.c,v 1.11 1996/03/30 22:24:44 christos Exp $ */
/*
@@ -145,7 +145,7 @@ msgbuf_putchar(struct msgbuf *mbp, const char c)
return;
mbp->msg_bufc[mbp->msg_bufx++] = c;
- mbp->msg_bufl = min(mbp->msg_bufl+1, mbp->msg_bufs);
+ mbp->msg_bufl = lmin(mbp->msg_bufl+1, mbp->msg_bufs);
if (mbp->msg_bufx < 0 || mbp->msg_bufx >= mbp->msg_bufs)
mbp->msg_bufx = 0;
/* If the buffer is full, keep the most recent data. */