]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
linting nitpicks
authorVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 7 May 2018 10:17:09 +0000 (12:17 +0200)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Mon, 7 May 2018 10:17:09 +0000 (12:17 +0200)
lib/cache/api.c
lib/cache/entry_list.c
lib/cache/impl.h

index 9ef2b9827547a9513f1495e468b274268a51884f..03953a397910ab756bc5b37b3f156339b052b9c4 100644 (file)
@@ -334,7 +334,7 @@ static int try_wild(struct key *k, struct answer *ans, const knot_dname_t *clenc
                    const struct kr_query *qry, struct kr_cache *cache);
 
 static int peek_encloser(
-       struct key *k, struct answer *ans, const int sname_labels,
+       struct key *k, struct answer *ans, int sname_labels,
        uint8_t lowest_rank, const struct kr_query *qry, struct kr_cache *cache);
 
 /** function for .produce phase */
index 17fa709555168b66e59234af83af7fb624d018ad..ae2f2afff526301864ed423e65882221e5012ea7 100644 (file)
@@ -22,7 +22,7 @@
 #include "lib/utils.h"
 
 
-static int entry_h_len(const knot_db_val_t val);
+static int entry_h_len(knot_db_val_t val);
 
 
 void entry_list_memcpy(struct entry_apex *ea, entry_list_t list)
index 042074e1b4fa82ee64d25bd208042e2e21330389..abf522621f536c9451b1ed8e1295e466601bc50c 100644 (file)
@@ -99,7 +99,7 @@ static const int NSEC_P_MAXLEN = sizeof(uint32_t) + 5 + 255;
  */
 struct entry_h * entry_h_consistent(knot_db_val_t data, uint16_t type);
 
-struct entry_apex * entry_apex_consistent(knot_db_val_t data);
+struct entry_apex * entry_apex_consistent(knot_db_val_t val);
 
 // TODO
 #define KR_CACHE_KEY_MAXLEN (KNOT_DNAME_MAXLEN + 100)