From 7d57d5b7eebb952811aaaef97195a1a8c300e8bd Mon Sep 17 00:00:00 2001 From: Daniel Hartmeier Date: Thu, 18 Dec 2003 16:07:39 +0000 Subject: resolve compiler warnings, from Pyun YongHyeon, ok cedric@, mcbride@ --- sys/net/if_pfsync.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/net/if_pfsync.c') 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) { -- cgit v1.2.3