Received: by mail.netbsd.org (Postfix, from userid 605) id D95CA14A1C4; Sat, 15 Sep 2012 16:57:30 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 0687614A1B9 for ; Sat, 15 Sep 2012 16:57:30 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id 6geC0wa-5lS1 for ; Sat, 15 Sep 2012 16:57:29 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 3E26114A144 for ; Sat, 15 Sep 2012 16:57:29 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 9CAFA175DD; Sat, 15 Sep 2012 16:56:45 +0000 (UTC) MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Date: Sat, 15 Sep 2012 16:56:45 +0000 From: "Iain Hibbert" Subject: CVS commit: src/sys/external/bsd/ipf/netinet To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20120915165645.9CAFA175DD@cvs.netbsd.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Iain Hibbert" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: plunky Date: Sat Sep 15 16:56:45 UTC 2012 Modified Files: src/sys/external/bsd/ipf/netinet: ip_compat.h ip_fil.h ip_log.c ip_nat.h ip_proxy.h Log Message: the result of the construct #define FOO defined(BAR) #if FOO [conditional code] #endif is "undefined", according to C99 6.10.1 note 4. So, change code like that to use the following paradigm #if defined(BAR) #define FOO 1 #else #define FOO 0 #endif #if FOO [conditional code] #endif To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/sys/external/bsd/ipf/netinet/ip_compat.h \ src/sys/external/bsd/ipf/netinet/ip_fil.h \ src/sys/external/bsd/ipf/netinet/ip_log.c \ src/sys/external/bsd/ipf/netinet/ip_nat.h \ src/sys/external/bsd/ipf/netinet/ip_proxy.h Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.