diff options
author | Michael Brown <mcb30@etherboot.org> | 2007-12-07 00:11:43 +0000 |
---|---|---|
committer | Michael Brown <mcb30@etherboot.org> | 2007-12-07 00:11:43 +0000 |
commit | df868476e7872c3ebd8c6e2a21f8365858907dc7 (patch) | |
tree | c38e7ca65bc32afd869a2e949f573e37cd174e96 /src/net/ipv4.c | |
parent | 64787bad295e7f4eefbe60fddc3439d34412090e (diff) | |
download | ipxe-df868476e7872c3ebd8c6e2a21f8365858907dc7.tar.gz |
Various warnings fixups for OpenBSD with gcc-3.3.5.
Diffstat (limited to 'src/net/ipv4.c')
-rw-r--r-- | src/net/ipv4.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/net/ipv4.c b/src/net/ipv4.c index 2f50f0e4..f86c71e5 100644 --- a/src/net/ipv4.c +++ b/src/net/ipv4.c @@ -435,7 +435,7 @@ static int ipv4_rx ( struct io_buffer *iobuf, struct net_device *netdev __unused /* Sanity check the IPv4 header */ if ( iob_len ( iobuf ) < sizeof ( *iphdr ) ) { - DBG ( "IPv4 packet too short at %d bytes (min %d bytes)\n", + DBG ( "IPv4 packet too short at %zd bytes (min %zd bytes)\n", iob_len ( iobuf ), sizeof ( *iphdr ) ); goto err; } @@ -445,13 +445,13 @@ static int ipv4_rx ( struct io_buffer *iobuf, struct net_device *netdev __unused } hdrlen = ( ( iphdr->verhdrlen & IP_MASK_HLEN ) * 4 ); if ( hdrlen < sizeof ( *iphdr ) ) { - DBG ( "IPv4 header too short at %d bytes (min %d bytes)\n", + DBG ( "IPv4 header too short at %zd bytes (min %zd bytes)\n", hdrlen, sizeof ( *iphdr ) ); goto err; } if ( hdrlen > iob_len ( iobuf ) ) { - DBG ( "IPv4 header too long at %d bytes " - "(packet is %d bytes)\n", hdrlen, iob_len ( iobuf ) ); + DBG ( "IPv4 header too long at %zd bytes " + "(packet is %zd bytes)\n", hdrlen, iob_len ( iobuf ) ); goto err; } if ( ( csum = tcpip_chksum ( iphdr, hdrlen ) ) != 0 ) { @@ -461,13 +461,13 @@ static int ipv4_rx ( struct io_buffer *iobuf, struct net_device *netdev __unused } len = ntohs ( iphdr->len ); if ( len < hdrlen ) { - DBG ( "IPv4 length too short at %d bytes " - "(header is %d bytes)\n", len, hdrlen ); + DBG ( "IPv4 length too short at %zd bytes " + "(header is %zd bytes)\n", len, hdrlen ); goto err; } if ( len > iob_len ( iobuf ) ) { - DBG ( "IPv4 length too long at %d bytes " - "(packet is %d bytes)\n", len, iob_len ( iobuf ) ); + DBG ( "IPv4 length too long at %zd bytes " + "(packet is %zd bytes)\n", len, iob_len ( iobuf ) ); goto err; } |