From 2bae6fc51889f1938b05c35bf6965a1826a2d834 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Tue, 19 Nov 2019 11:19:24 -0500 Subject: LGTM only supports C++ style comments... --- backend/usb-libusb.c | 2 +- cgi-bin/var.c | 2 +- 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); -- cgit v1.2.1