Date: Mon, 15 Jul 2002 10:28:34 -0700 (PDT) From: Mark Murray <markm@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/sys sysctl.h src/sys/kern kern_sysctl.c Message-ID: <200207151728.g6FHSYFY071029@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200207151728.g6FHSYFY071029>