diff options
author | Bjoern A. Zeeb <bz@FreeBSD.org> | 2016-08-18 10:26:15 +0000 |
---|---|---|
committer | Bjoern A. Zeeb <bz@FreeBSD.org> | 2016-08-18 10:26:15 +0000 |
commit | db68f7839f98c9fc50b2b75053247e13f99a2ab9 (patch) | |
tree | b3633d2ba9bbcec8b9df9cf556764a3624a2a769 /sys/netpfil | |
parent | 4e78ecd2c95281ff15c2c9776d7c0e7203a5ba86 (diff) | |
download | src-db68f7839f98c9fc50b2b75053247e13f99a2ab9.tar.gz src-db68f7839f98c9fc50b2b75053247e13f99a2ab9.zip |
Try to fix gcc compilation errors (which are right).
nat64_getlasthdr() returns an int, which can be -1 in case of error,
storing the result in an uint8_t and then comparing to < 0 is not
helpful. Do what is done in the rest of the code and make proto an
int here as well.
Notes
Notes:
svn path=/head/; revision=304378
Diffstat (limited to 'sys/netpfil')
-rw-r--r-- | sys/netpfil/ipfw/nat64/nat64_translate.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/netpfil/ipfw/nat64/nat64_translate.c b/sys/netpfil/ipfw/nat64/nat64_translate.c index ca31b5dbf71f..cebd3c6f9892 100644 --- a/sys/netpfil/ipfw/nat64/nat64_translate.c +++ b/sys/netpfil/ipfw/nat64/nat64_translate.c @@ -1415,8 +1415,7 @@ nat64_do_handle_ip6(struct mbuf *m, uint32_t aaddr, uint16_t aport, struct sockaddr *dst; uint16_t *csum; uint32_t mtu; - int plen, hlen; - uint8_t proto; + int plen, hlen, proto; /* * XXX: we expect ipfw_chk() did m_pullup() up to upper level |