]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
lint: tidy: fixed cert-err33-c errors
authorAleš Mrázek <ales.mrazek@nic.cz>
Wed, 20 Aug 2025 13:46:04 +0000 (15:46 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Wed, 27 Aug 2025 06:57:15 +0000 (08:57 +0200)
utils/cache_gc/db.c

index 0e8f90c17d4dc4c46c2a7440577a453eb440e783..f23c130937c5b6356686095cad4563bc176aca9d 100644 (file)
@@ -130,15 +130,15 @@ static uint8_t entry_labels(knot_db_val_t * key, uint16_t rrtype)
 
 void debug_printbin(const char *str, unsigned int len)
 {
-       putchar('"');
+       (void)putchar('"');
        for (int idx = 0; idx < len; idx++) {
                char c = str[idx];
                if (isprint(c))
-                       putchar(c);
+                       (void)putchar(c);
                else
                        printf("`%02hhx`", c);
        }
-       putchar('"');
+       (void)putchar('"');
 }
 
 /** Return one entry_h reference from a cache DB value.  NULL if not consistent/suitable. */