summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2019-11-19 11:19:24 -0500
committerMichael R Sweet <michael.r.sweet@gmail.com>2019-11-19 11:19:24 -0500
commit2bae6fc51889f1938b05c35bf6965a1826a2d834 (patch)
tree8f4444aba82cc2f853a2a44962c1adaf4615166e
parent6f7bd716e683b36d049ae1133c55997757029c49 (diff)
downloadcups-2bae6fc51889f1938b05c35bf6965a1826a2d834.tar.gz
LGTM only supports C++ style comments...
-rw-r--r--backend/usb-libusb.c2
-rw-r--r--cgi-bin/var.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/backend/usb-libusb.c b/backend/usb-libusb.c
index 9740c14d5..393fe65ee 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 < (uint8_t)ifaceptr->num_altsetting;
+ altset < ifaceptr->num_altsetting; // lgtm [cpp/comparison-with-wider-type]
altset ++, altptr ++)
{
/*
diff --git a/cgi-bin/var.c b/cgi-bin/var.c
index c5fde0124..349a21845 100644
--- a/cgi-bin/var.c
+++ b/cgi-bin/var.c
@@ -983,7 +983,7 @@ cgi_initialize_post(void)
*/
length = (size_t)strtol(content_length, NULL, 10);
- data = malloc(length + 1); /* lgtm [cpp/uncontrolled-allocation-size] */
+ data = malloc(length + 1); // lgtm [cpp/uncontrolled-allocation-size]
if (data == NULL)
return (0);