From: Aleš Mrázek Date: Wed, 20 Aug 2025 13:39:03 +0000 (+0200) Subject: lint: tidy: fixed cert-int09-c errors X-Git-Tag: v6.0.16~19^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=160c606f7824ccd537b2bd39e6a903d41879ba56;p=thirdparty%2Fknot-resolver.git lint: tidy: fixed cert-int09-c errors --- diff --git a/lib/rules/api.c b/lib/rules/api.c index 82e3ee769..87d9866a8 100644 --- a/lib/rules/api.c +++ b/lib/rules/api.c @@ -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, diff --git a/lib/zonecut.c b/lib/zonecut.c index 8004fd222..5f261f63c 100644 --- a/lib/zonecut.c +++ b/lib/zonecut.c @@ -19,12 +19,12 @@ /** 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;