Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 24 Aug 2016 17:38:33 +1000 (EST)
From:      Bruce Evans <brde@optusnet.com.au>
To:        Hans Petter Selasky <hps@selasky.org>
Cc:        Bruce Evans <bde@freebsd.org>, src-committers@freebsd.org,  svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r304699 - head/sys/dev/usb/input
Message-ID:  <20160824173513.M1067@besplex.bde.org>
In-Reply-To: <6e540271-b273-3f0b-0325-956bd0478789@selasky.org>
References:  <201608231950.u7NJoGD8035436@repo.freebsd.org> <6e540271-b273-3f0b-0325-956bd0478789@selasky.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 24 Aug 2016, Hans Petter Selasky wrote:

> On 08/23/16 21:50, Bruce Evans wrote:
>> +		kbd->kb_delay1 = imax(((int *)arg)[0], 250);
>> +		kbd->kb_delay2 = imax(((int *)arg)[1], 34);
>
> It looks like this will pass negative kb_delay's. How do you handle that?

imax(negtive, POSITIVE) == POSITIVE.

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160824173513.M1067>