diff options
author | dt <dt@FreeBSD.org> | 1999-04-24 13:23:48 +0000 |
---|---|---|
committer | dt <dt@FreeBSD.org> | 1999-04-24 13:23:48 +0000 |
commit | ce1c742794b0e777da8f653839d8c70dc00b6d9e (patch) | |
tree | 007cf9a4ef63f5c8c6f5e047a08a246ac639e359 /sys/netinet | |
parent | 069fcdc17d94ed10da643f20d6ad91d603920377 (diff) | |
download | FreeBSD-src-ce1c742794b0e777da8f653839d8c70dc00b6d9e.zip FreeBSD-src-ce1c742794b0e777da8f653839d8c70dc00b6d9e.tar.gz |
Use pointer arithmetic as appropriate.
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/ip_fw.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/ip_fw.c b/sys/netinet/ip_fw.c index d88a159..1867b96 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.107 1999/04/20 13:32:04 peter Exp $ + * $Id: ip_fw.c,v 1.108 1999/04/20 14:29:59 peter Exp $ */ /* @@ -629,7 +629,7 @@ again: if (pip) \ *pip = ip ; \ else \ - ip = (struct ip *)((int)ip + 14); \ + ip = (struct ip *)((char *)ip + 14);\ offset = (ip->ip_off & IP_OFFMASK); \ } \ } while (0) |