From owner-svn-src-head@freebsd.org Wed Aug 24 07:38:50 2016 Return-Path: Delivered-To: svn-src-head@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 F18CFBC4A24; Wed, 24 Aug 2016 07:38:49 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from mail104.syd.optusnet.com.au (mail104.syd.optusnet.com.au [211.29.132.246]) by mx1.freebsd.org (Postfix) with ESMTP id B30151A6E; Wed, 24 Aug 2016 07:38:49 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from c122-106-149-109.carlnfd1.nsw.optusnet.com.au (c122-106-149-109.carlnfd1.nsw.optusnet.com.au [122.106.149.109]) by mail104.syd.optusnet.com.au (Postfix) with ESMTPS id E4E90426E6F; Wed, 24 Aug 2016 17:38:34 +1000 (AEST) Date: Wed, 24 Aug 2016 17:38:33 +1000 (EST) From: Bruce Evans X-X-Sender: bde@besplex.bde.org To: Hans Petter Selasky cc: Bruce Evans , src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r304699 - head/sys/dev/usb/input In-Reply-To: <6e540271-b273-3f0b-0325-956bd0478789@selasky.org> Message-ID: <20160824173513.M1067@besplex.bde.org> References: <201608231950.u7NJoGD8035436@repo.freebsd.org> <6e540271-b273-3f0b-0325-956bd0478789@selasky.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Optus-CM-Score: 0 X-Optus-CM-Analysis: v=2.1 cv=EfU1O6SC c=1 sm=1 tr=0 a=R/f3m204ZbWUO/0rwPSMPw==:117 a=L9H7d07YOLsA:10 a=9cW_t1CCXrUA:10 a=s5jvgZ67dGcA:10 a=kj9zAlcOel0A:10 a=Ol_XVkcfVrUKViacTZIA:9 a=CjuIK1q_8ugA:10 a=zPhqG-KPNAYA:10 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Aug 2016 07:38:50 -0000 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