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

index 82e3ee769b65c183b7b68405cb93e04ee436470e..87d9866a82d6da6339833cc4195fa3305bcfb81b 100644 (file)
@@ -50,7 +50,7 @@ static const uint8_t KEY_VIEW_SRC6[1] = "6";
 enum ret_codes_ {
        RET_CONT_CACHE = 0,
        RET_ANSWERED = 1,
-       RET_CONTINUE,
+       RET_CONTINUE = 2,
 };
 
 static int answer_exact_match(struct kr_query *qry, knot_pkt_t *pkt, uint16_t type,
index 8004fd222d808c5963f21835bc879d0bb2b8c5b0..5f261f63c9b01a279a2e5fe0536f52b90f51bb18 100644 (file)
 /** Information for one NS name + address type. */
 typedef enum {
        AI_UNINITED = 0,
-       AI_DISABLED,    /**< Can't use this addrset. */
-       AI_CYCLED,      /**< Skipped due to cycle detection; see implementation for details. */
+       AI_DISABLED = 1,        /**< Can't use this addrset. */
+       AI_CYCLED = 2,  /**< Skipped due to cycle detection; see implementation for details. */
        AI_LAST_BAD = AI_CYCLED, /** bad states: <= AI_LAST_BAD */
-       AI_UNKNOWN,     /**< Don't know status of this RRset; various reasons. */
-       AI_EMPTY,       /**< No usable address (may mean e.g. just NODATA). */
-       AI_OK,          /**< At least one usable address.
+       AI_UNKNOWN = 3, /**< Don't know status of this RRset; various reasons. */
+       AI_EMPTY = 4,   /**< No usable address (may mean e.g. just NODATA). */
+       AI_OK = 5,              /**< At least one usable address.
                         * LATER: we might be interested whether it's only glue. */
 } addrset_info_t;