diff options
author | Michael R Sweet <michael.r.sweet@gmail.com> | 2019-11-17 10:18:09 -0500 |
---|---|---|
committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2019-11-18 11:19:16 -0500 |
commit | f4a99aeb0252068ee78bf2158fb01fef6f4599ca (patch) | |
tree | 31028c3e796a4b1701a10a06ffe37d823360d783 /backend/usb-libusb.c | |
parent | f950947148bd1867c247a211af7404056b2b2e36 (diff) | |
download | cups-f4a99aeb0252068ee78bf2158fb01fef6f4599ca.tar.gz |
Address multiple minor issues reported by the LGTM security scanner:
- Lots of usage of localtime and gmtime (use _r/_s versions instead -
Issue #5685)
- Some unnecessary comparisons
- Suppress checks that are not useful (header guards, short global names, and
the integer overflow checks which don't reflect the actual range of values)
Diffstat (limited to 'backend/usb-libusb.c')
-rw-r--r-- | backend/usb-libusb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/usb-libusb.c b/backend/usb-libusb.c index 1c4d9f117..9740c14d5 100644 --- a/backend/usb-libusb.c +++ b/backend/usb-libusb.c @@ -878,7 +878,7 @@ find_device(usb_cb_t cb, /* I - Callback function */ protocol = 0; for (altset = 0, altptr = ifaceptr->altsetting; - altset < ifaceptr->num_altsetting; + altset < (uint8_t)ifaceptr->num_altsetting; altset ++, altptr ++) { /* |