Date: Fri, 22 Apr 2016 03:55:33 +0000 (UTC) From: Marcelo Araujo <araujo@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r298445 - head/usr.sbin/moused Message-ID: <201604220355.u3M3tXXl061828@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604220355.u3M3tXXl061828>