diff options
author | Blue Swirl <blauwirbel@gmail.com> | 2009-07-31 21:16:51 +0000 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2009-07-31 21:16:51 +0000 |
commit | 660f11be541813be5f09fbaf44d8e7c6d5a5bbfe (patch) | |
tree | 1d133bdfc69d11fe81e769825adf3f680ee2f91e /hw/rtl8139.c | |
parent | PPC: convert Uni-north to qdev: also fixes Mac99 machine crash (diff) | |
download | qemu-kvm-660f11be541813be5f09fbaf44d8e7c6d5a5bbfe.tar.gz qemu-kvm-660f11be541813be5f09fbaf44d8e7c6d5a5bbfe.tar.bz2 qemu-kvm-660f11be541813be5f09fbaf44d8e7c6d5a5bbfe.zip |
Fix Sparse warnings: "Using plain integer as NULL pointer"
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/rtl8139.c')
-rw-r--r-- | hw/rtl8139.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hw/rtl8139.c b/hw/rtl8139.c index 91165dbff..fcd6d956d 100644 --- a/hw/rtl8139.c +++ b/hw/rtl8139.c @@ -2090,12 +2090,12 @@ static int rtl8139_cplus_transmit_one(RTL8139State *s) #define ETH_MTU 1500 /* ip packet header */ - ip_header *ip = 0; + ip_header *ip = NULL; int hlen = 0; uint8_t ip_protocol = 0; uint16_t ip_data_len = 0; - uint8_t *eth_payload_data = 0; + uint8_t *eth_payload_data = NULL; size_t eth_payload_len = 0; int proto = be16_to_cpu(*(uint16_t *)(saved_buffer + 12)); |