From 660f11be541813be5f09fbaf44d8e7c6d5a5bbfe Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Fri, 31 Jul 2009 21:16:51 +0000 Subject: Fix Sparse warnings: "Using plain integer as NULL pointer" Signed-off-by: Blue Swirl --- hw/rtl8139.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'hw/rtl8139.c') diff --git a/hw/rtl8139.c b/hw/rtl8139.c index 91165dbff4..fcd6d956db 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)); -- cgit v1.2.3