summaryrefslogtreecommitdiff
path: root/sys/net/if_pfsync.c
diff options
context:
space:
mode:
authorDaniel Hartmeier <dhartmei@cvs.openbsd.org>2003-12-18 16:07:39 +0000
committerDaniel Hartmeier <dhartmei@cvs.openbsd.org>2003-12-18 16:07:39 +0000
commit7d57d5b7eebb952811aaaef97195a1a8c300e8bd (patch)
treecd99a0def777482ebbb54abeb37afc26fc8da9cc /sys/net/if_pfsync.c
parent82e462e08a14331d50fdaa5add4e9bbc5efc5e5d (diff)
resolve compiler warnings, from Pyun YongHyeon, ok cedric@, mcbride@
Diffstat (limited to 'sys/net/if_pfsync.c')
-rw-r--r--sys/net/if_pfsync.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/if_pfsync.c b/sys/net/if_pfsync.c
index 399757b68e9..1a183e55f91 100644
--- a/sys/net/if_pfsync.c
+++ b/sys/net/if_pfsync.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pfsync.c,v 1.11 2003/12/16 08:17:56 mcbride Exp $ */
+/* $OpenBSD: if_pfsync.c,v 1.12 2003/12/18 16:07:38 dhartmei Exp $ */
/*
* Copyright (c) 2002 Michael Shalayeff
@@ -254,7 +254,7 @@ pfsync_input(struct mbuf *m, ...)
}
ip = mtod(m, struct ip *);
}
- ph = (void *)ip + iplen;
+ ph = (struct pfsync_header *)((char *)ip + iplen);
/* verify the version */
if (ph->version != PFSYNC_VERSION) {