From owner-cvs-all@FreeBSD.ORG Tue Mar 9 03:35:43 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EF8F416A4D0; Tue, 9 Mar 2004 03:35:43 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D088943D31; Tue, 9 Mar 2004 03:35:43 -0800 (PST) (envelope-from dwmalone@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i29BZhGe063857; Tue, 9 Mar 2004 03:35:43 -0800 (PST) (envelope-from dwmalone@repoman.freebsd.org) Received: (from dwmalone@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i29BZhed063856; Tue, 9 Mar 2004 03:35:43 -0800 (PST) (envelope-from dwmalone) Message-Id: <200403091135.i29BZhed063856@repoman.freebsd.org> From: David Malone Date: Tue, 9 Mar 2004 03:35:43 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/usbhidaction usbhidaction.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2004 11:35:44 -0000 dwmalone 2004/03/09 03:35:43 PST FreeBSD src repository Modified files: usr.bin/usbhidaction usbhidaction.c Log: Misc fixes brought to light by WARNS=6: 1) Constness, unusedness and size_tness. 2) Don't clobber the value returned by hid_report_size in the daemon case. 3) Don't misspell "sizeof buf" as 100. 4) Don't run off the end of a buffer if the pid is about a google. 5) Avoid shadowing the usage function. Revision Changes Path 1.4 +17 -14 src/usr.bin/usbhidaction/usbhidaction.c