diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2009-01-29 17:58:28 +0100 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2009-01-29 17:58:28 +0100 |
commit | 9c0b5859e6cc4b7a0e925fde8665990281b265d3 (patch) | |
tree | 8994dbe0942d56c9a7cf470fc3b2316d1f91e0a3 /tools/hid2hci.c | |
parent | 1ce81e1e0794a5d619016e17b33b533b614fc6a9 (diff) |
Fix mostly every warning caused by -Wsign-compare
Diffstat (limited to 'tools/hid2hci.c')
-rw-r--r-- | tools/hid2hci.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tools/hid2hci.c b/tools/hid2hci.c index 76b3766b..cd38aac7 100644 --- a/tools/hid2hci.c +++ b/tools/hid2hci.c @@ -129,7 +129,8 @@ static int send_report(int fd, const char *buf, size_t size) { struct hiddev_report_info rinfo; struct hiddev_usage_ref uref; - int i, err; + unsigned int i; + int err; for (i = 0; i < size; i++) { memset(&uref, 0, sizeof(uref)); @@ -179,8 +180,8 @@ static int switch_logitech(struct device_info *devinfo) memset(&dinfo, 0, sizeof(dinfo)); err = ioctl(fd, HIDIOCGDEVINFO, &dinfo); - if (err < 0 || dinfo.busnum != atoi(devinfo->dev->bus->dirname) || - dinfo.devnum != atoi(devinfo->dev->filename)) { + if (err < 0 || (int) dinfo.busnum != atoi(devinfo->dev->bus->dirname) || + (int) dinfo.devnum != atoi(devinfo->dev->filename)) { close(fd); continue; } @@ -288,7 +289,7 @@ static int find_devices(int mode, struct device_info *devinfo, size_t size) struct usb_bus *bus; struct usb_device *dev; struct device_id *id; - int count = 0; + unsigned int count = 0; usb_find_busses(); usb_find_devices(); |