From owner-svn-src-all@freebsd.org Wed Aug 24 07:52:52 2016 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 06311BC209A; Wed, 24 Aug 2016 07:52:52 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id BDE721949; Wed, 24 Aug 2016 07:52:51 +0000 (UTC) (envelope-from hps@selasky.org) Received: from laptop015.home.selasky.org (unknown [62.141.129.119]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 687A21FE023; Wed, 24 Aug 2016 09:52:43 +0200 (CEST) Subject: Re: svn commit: r304699 - head/sys/dev/usb/input To: Bruce Evans References: <201608231950.u7NJoGD8035436@repo.freebsd.org> <6e540271-b273-3f0b-0325-956bd0478789@selasky.org> <20160824173513.M1067@besplex.bde.org> Cc: Bruce Evans , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org From: Hans Petter Selasky Message-ID: <5d19a3ad-630d-f145-1e5e-36d51b4abdbb@selasky.org> Date: Wed, 24 Aug 2016 09:57:14 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:45.0) Gecko/20100101 Thunderbird/45.0 MIME-Version: 1.0 In-Reply-To: <20160824173513.M1067@besplex.bde.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Aug 2016 07:52:52 -0000 On 08/24/16 09:38, Bruce Evans wrote: > 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. > OK, looks good. --HPS