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 /usb-linux.c | |
parent | 2e29bd04786003561303dcad940b38afe790fb9b (diff) |
Fix Sparse warnings: "Using plain integer as NULL pointer"
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'usb-linux.c')
-rw-r--r-- | usb-linux.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usb-linux.c b/usb-linux.c index 3c724baf69..043f6b6ba1 100644 --- a/usb-linux.c +++ b/usb-linux.c @@ -1057,7 +1057,7 @@ static int get_tag_value(char *buf, int buf_size, */ static int usb_host_scan_dev(void *opaque, USBScanFunc *func) { - FILE *f = 0; + FILE *f = NULL; char line[1024]; char buf[1024]; int bus_num, addr, speed, device_count, class_id, product_id, vendor_id; @@ -1178,7 +1178,7 @@ static int usb_host_read_file(char *line, size_t line_size, const char *device_f */ static int usb_host_scan_sys(void *opaque, USBScanFunc *func) { - DIR *dir = 0; + DIR *dir = NULL; char line[1024]; int bus_num, addr, speed, class_id, product_id, vendor_id; int ret = 0; @@ -1257,8 +1257,8 @@ static int usb_host_scan_sys(void *opaque, USBScanFunc *func) static int usb_host_scan(void *opaque, USBScanFunc *func) { Monitor *mon = cur_mon; - FILE *f = 0; - DIR *dir = 0; + FILE *f = NULL; + DIR *dir = NULL; int ret = 0; const char *fs_type[] = {"unknown", "proc", "dev", "sys"}; char devpath[PATH_MAX]; |