summaryrefslogtreecommitdiffstats
path: root/sys/netinet/ip_fw2.c
diff options
context:
space:
mode:
authormaxim <maxim@FreeBSD.org>2008-10-14 17:47:29 +0000
committermaxim <maxim@FreeBSD.org>2008-10-14 17:47:29 +0000
commit183bdc8e412a5455dbf90bf8e5fc7d62e9ad19d4 (patch)
treeba0f076e50a9206c243da4967269db248860d553 /sys/netinet/ip_fw2.c
parentfdfb3870dc8d84203890d73ec2c504fc202b4e1d (diff)
downloadFreeBSD-src-183bdc8e412a5455dbf90bf8e5fc7d62e9ad19d4.zip
FreeBSD-src-183bdc8e412a5455dbf90bf8e5fc7d62e9ad19d4.tar.gz
o Remove unnecessary parentheses and restore identation.
Prodded by: mlaier
Diffstat (limited to 'sys/netinet/ip_fw2.c')
-rw-r--r--sys/netinet/ip_fw2.c56
1 files changed, 24 insertions, 32 deletions
diff --git a/sys/netinet/ip_fw2.c b/sys/netinet/ip_fw2.c
index 9d460ef..64903ea 100644
--- a/sys/netinet/ip_fw2.c
+++ b/sys/netinet/ip_fw2.c
@@ -4385,50 +4385,42 @@ ipfw_ctl(struct sockopt *sopt)
break;
case IP_FW_NAT_CFG:
- {
- if (IPFW_NAT_LOADED)
- error = ipfw_nat_cfg_ptr(sopt);
- else {
- printf("IP_FW_NAT_CFG: %s\n",
- "ipfw_nat not present, please load it");
- error = EINVAL;
- }
+ if (IPFW_NAT_LOADED)
+ error = ipfw_nat_cfg_ptr(sopt);
+ else {
+ printf("IP_FW_NAT_CFG: %s\n",
+ "ipfw_nat not present, please load it");
+ error = EINVAL;
}
break;
case IP_FW_NAT_DEL:
- {
- if (IPFW_NAT_LOADED)
- error = ipfw_nat_del_ptr(sopt);
- else {
- printf("IP_FW_NAT_DEL: %s\n",
- "ipfw_nat not present, please load it");
- error = EINVAL;
- }
+ if (IPFW_NAT_LOADED)
+ error = ipfw_nat_del_ptr(sopt);
+ else {
+ printf("IP_FW_NAT_DEL: %s\n",
+ "ipfw_nat not present, please load it");
+ error = EINVAL;
}
break;
case IP_FW_NAT_GET_CONFIG:
- {
- if (IPFW_NAT_LOADED)
- error = ipfw_nat_get_cfg_ptr(sopt);
- else {
- printf("IP_FW_NAT_GET_CFG: %s\n",
- "ipfw_nat not present, please load it");
- error = EINVAL;
- }
+ if (IPFW_NAT_LOADED)
+ error = ipfw_nat_get_cfg_ptr(sopt);
+ else {
+ printf("IP_FW_NAT_GET_CFG: %s\n",
+ "ipfw_nat not present, please load it");
+ error = EINVAL;
}
break;
case IP_FW_NAT_GET_LOG:
- {
- if (IPFW_NAT_LOADED)
- error = ipfw_nat_get_log_ptr(sopt);
- else {
- printf("IP_FW_NAT_GET_LOG: %s\n",
- "ipfw_nat not present, please load it");
- error = EINVAL;
- }
+ if (IPFW_NAT_LOADED)
+ error = ipfw_nat_get_log_ptr(sopt);
+ else {
+ printf("IP_FW_NAT_GET_LOG: %s\n",
+ "ipfw_nat not present, please load it");
+ error = EINVAL;
}
break;
OpenPOWER on IntegriCloud