svn commit: r298445 - head/usr.sbin/moused
Marcelo Araujo
araujo at FreeBSD.org
Fri Apr 22 03:55:35 UTC 2016
Author: araujo
Date: Fri Apr 22 03:55:33 2016
New Revision: 298445
URL: https://svnweb.freebsd.org/changeset/base/298445
Log:
Use macro MAX() from sys/param.h.
MFC after: 2 weeks.
Modified:
head/usr.sbin/moused/moused.c
Modified: head/usr.sbin/moused/moused.c
==============================================================================
--- head/usr.sbin/moused/moused.c Fri Apr 22 03:46:57 2016 (r298444)
+++ head/usr.sbin/moused/moused.c Fri Apr 22 03:55:33 2016 (r298445)
@@ -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
More information about the svn-src-all
mailing list