From owner-cvs-all Mon Jul 15 10:36:43 2002 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 C6EB037B70D; Mon, 15 Jul 2002 10:36:12 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44CF4443BB; Mon, 15 Jul 2002 10:29:55 -0700 (PDT) (envelope-from markm@FreeBSD.org) Received: from freefall.freebsd.org (markm@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g6FHSYJU071030; Mon, 15 Jul 2002 10:28:34 -0700 (PDT) (envelope-from markm@freefall.freebsd.org) Received: (from markm@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g6FHSYFY071029; Mon, 15 Jul 2002 10:28:34 -0700 (PDT) Message-Id: <200207151728.g6FHSYFY071029@freefall.freebsd.org> From: Mark Murray Date: Mon, 15 Jul 2002 10:28:34 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys sysctl.h src/sys/kern kern_sysctl.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG markm 2002/07/15 10:28:34 PDT Modified files: sys/sys sysctl.h sys/kern kern_sysctl.c Log: Fix a bazillion lint and WARNS warnings. One major fix is the removal of semicolons from the end of macros: #define FOO() bar(a,b,c); becomes #define FOO() bar(a,b,c) Thus requiring the semicolon in the invocation of FOO. This is much cleaner syntax and more consistent with expectations when writing function-like things in source. With both peril-sensitive sunglasses and flame-proof undies on, tighten up some types, and work around some warnings generated by this. There are some _horrible_ const/non-const issues in this code. Revision Changes Path 1.127 +2 -2 src/sys/kern/kern_sysctl.c 1.106 +14 -14 src/sys/sys/sysctl.h To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message