diff options
author | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2003-12-19 20:09:02 +0000 |
---|---|---|
committer | Daniel Hartmeier <dhartmei@cvs.openbsd.org> | 2003-12-19 20:09:02 +0000 |
commit | 3ad4acb8de250ad70235f6d739a8fcb2cd937cd6 (patch) | |
tree | 321642bfdfdc7db2c2402df74c134039d2ef7fbe /sys | |
parent | e5e3fc57471755e908f4cf9d4b6c67ab9451b8fa (diff) |
more const-correctness, ok mcbride@
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/pf_osfp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/pf_osfp.c b/sys/net/pf_osfp.c index 68d937643d1..08b29c72da0 100644 --- a/sys/net/pf_osfp.c +++ b/sys/net/pf_osfp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf_osfp.c,v 1.4 2003/12/18 16:07:38 dhartmei Exp $ */ +/* $OpenBSD: pf_osfp.c,v 1.5 2003/12/19 20:09:01 dhartmei Exp $ */ /* * Copyright (c) 2003 Mike Frantzen <frantzen@w4g.org> @@ -122,7 +122,7 @@ pf_osfp_fingerprint_hdr(const struct ip *ip, const struct tcphdr *tcp) cnt = (tcp->th_off << 2) - sizeof(*tcp); - optp = (caddr_t)tcp + sizeof(*tcp); + optp = (const u_int8_t *)((const char *)tcp + sizeof(*tcp)); for (; cnt > 0; cnt -= optlen, optp += optlen) { if (*optp == TCPOPT_EOL) break; |