From 5d6026c25e44ae6ace60c18989cd16846ad386b3 Mon Sep 17 00:00:00 2001 From: Marcelo Araujo Date: Fri, 22 Apr 2016 03:55:33 +0000 Subject: [PATCH] Use macro MAX() from sys/param.h. MFC after: 2 weeks. --- usr.sbin/moused/moused.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.sbin/moused/moused.c b/usr.sbin/moused/moused.c index 0e278c472ed..bf0767b1e18 100644 --- a/usr.sbin/moused/moused.c +++ b/usr.sbin/moused/moused.c @@ -2986,7 +2986,7 @@ pnpgets(char *buf) connect_idle: /* we may still have something in the buffer */ - return ((i > 0) ? i : 0); + return (MAX(i, 0)); } static int