aboutsummaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorBruce Evans <bde@FreeBSD.org>1998-08-11 19:08:42 +0000
committerBruce Evans <bde@FreeBSD.org>1998-08-11 19:08:42 +0000
commite43b2ba087a749f8638ea4cc6c2d60d426b08479 (patch)
tree4eaecd6f0a88db4b47b7d0f2f247786305264d65 /sys/netinet
parentf841c4e56ed3da6342b3aab54104bc64fafdd412 (diff)
Notes
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/ip_fw.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/netinet/ip_fw.c b/sys/netinet/ip_fw.c
index 589208bb0a93..5ef7ec657bb4 100644
--- a/sys/netinet/ip_fw.c
+++ b/sys/netinet/ip_fw.c
@@ -12,7 +12,7 @@
*
* This software is provided ``AS IS'' without any warranties of any kind.
*
- * $Id: ip_fw.c,v 1.93 1998/07/18 23:27:15 alex Exp $
+ * $Id: ip_fw.c,v 1.94 1998/08/03 17:23:37 dfr Exp $
*/
/*
@@ -73,10 +73,11 @@ SYSCTL_INT(_net_inet_ip_fw, OID_AUTO, verbose_limit, CTLFLAG_RW, &fw_verbose_lim
#define dprintf(a) if (!fw_debug); else printf a
-#define print_ip(a) printf("%ld.%ld.%ld.%ld",(ntohl(a.s_addr)>>24)&0xFF,\
- (ntohl(a.s_addr)>>16)&0xFF,\
- (ntohl(a.s_addr)>>8)&0xFF,\
- (ntohl(a.s_addr))&0xFF);
+#define print_ip(a) printf("%d.%d.%d.%d", \
+ (int)(ntohl(a.s_addr) >> 24) & 0xFF, \
+ (int)(ntohl(a.s_addr) >> 16) & 0xFF, \
+ (int)(ntohl(a.s_addr) >> 8) & 0xFF, \
+ (int)(ntohl(a.s_addr)) & 0xFF);
#define dprint_ip(a) if (!fw_debug); else print_ip(a)