From owner-cvs-all@FreeBSD.ORG Tue Aug 5 02:19:08 2003 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 287C637B401; Tue, 5 Aug 2003 02:19:08 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id C661143FA3; Tue, 5 Aug 2003 02:19:07 -0700 (PDT) (envelope-from johan@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h759J70U010487; Tue, 5 Aug 2003 02:19:07 -0700 (PDT) (envelope-from johan@repoman.freebsd.org) Received: (from johan@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h759J7an010486; Tue, 5 Aug 2003 02:19:07 -0700 (PDT) Message-Id: <200308050919.h759J7an010486@repoman.freebsd.org> From: Johan Karlsson Date: Tue, 5 Aug 2003 02:19:07 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sbin/camcontrol Makefile camcontrol.c modeedit.c util.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, 05 Aug 2003 09:19:08 -0000 johan 2003/08/05 02:19:07 PDT FreeBSD src repository Modified files: sbin/camcontrol Makefile camcontrol.c modeedit.c util.c Log: Make this WARNS=6 clean by: 1: add 'const' to char * where needed; 2: mark unused variables with __unused; 3: remove double prototypes for mode_edit and mode_list. 4: moves the global variables 'bus', 'target', and 'lun' into the main function and protect them with #ifndef MINIMALISTIC, 5: renames 3 variable in order not to shadow other things index -> indx -- in modepage_dump since index is a function from arglist -> arglst -- in the function parse_btl since arglist is also a global variable convertend -> convertend2 -- in the function editentry_set since that name is used two times within the function. 6: cast 0xffffffff in the macro RESOLUTION_MAX(size) to (int) since it is unsigned otherwise. Tested by: make universe Approved by: ken Revision Changes Path 1.15 +1 -1 src/sbin/camcontrol/Makefile 1.51 +18 -15 src/sbin/camcontrol/camcontrol.c 1.15 +21 -24 src/sbin/camcontrol/modeedit.c 1.10 +1 -1 src/sbin/camcontrol/util.c