Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Jan 2012 10:41:59 +0000 (UTC)
From:      "Bjoern A. Zeeb" <bz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r230452 - in head/sys/netinet: . ipfw
Message-ID:  <201201221041.q0MAfxDU072298@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bz
Date: Sun Jan 22 10:41:58 2012
New Revision: 230452
URL: http://svn.freebsd.org/changeset/base/230452

Log:
  Make #error messages string-literals and remove punctuation.
  
  Reported by:	bde (for ip_divert)
  Reviewed by:	bde
  MFC after:	3 days

Modified:
  head/sys/netinet/ip_divert.c
  head/sys/netinet/ip_gre.c
  head/sys/netinet/ipfw/ip_fw2.c

Modified: head/sys/netinet/ip_divert.c
==============================================================================
--- head/sys/netinet/ip_divert.c	Sun Jan 22 10:24:12 2012	(r230451)
+++ head/sys/netinet/ip_divert.c	Sun Jan 22 10:41:58 2012	(r230452)
@@ -34,7 +34,7 @@ __FBSDID("$FreeBSD$");
 #include "opt_inet6.h"
 #include "opt_sctp.h"
 #ifndef INET
-#error "IPDIVERT requires INET."
+#error "IPDIVERT requires INET"
 #endif
 
 #include <sys/param.h>

Modified: head/sys/netinet/ip_gre.c
==============================================================================
--- head/sys/netinet/ip_gre.c	Sun Jan 22 10:24:12 2012	(r230451)
+++ head/sys/netinet/ip_gre.c	Sun Jan 22 10:41:58 2012	(r230452)
@@ -70,7 +70,7 @@ __FBSDID("$FreeBSD$");
 #include <netinet/ip_gre.h>
 #include <machine/in_cksum.h>
 #else
-#error ip_gre input without IP?
+#error "ip_gre requires INET"
 #endif
 
 #ifdef NETATALK

Modified: head/sys/netinet/ipfw/ip_fw2.c
==============================================================================
--- head/sys/netinet/ipfw/ip_fw2.c	Sun Jan 22 10:24:12 2012	(r230451)
+++ head/sys/netinet/ipfw/ip_fw2.c	Sun Jan 22 10:41:58 2012	(r230452)
@@ -34,7 +34,7 @@ __FBSDID("$FreeBSD$");
 #include "opt_ipdivert.h"
 #include "opt_inet.h"
 #ifndef INET
-#error IPFIREWALL requires INET.
+#error "IPFIREWALL requires INET"
 #endif /* INET */
 #include "opt_inet6.h"
 #include "opt_ipsec.h"



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201201221041.q0MAfxDU072298>