]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
treewide: eradicate "assert" in comments to fix CI
authorVladimír Čunát <vladimir.cunat@nic.cz>
Thu, 15 Apr 2021 12:28:35 +0000 (14:28 +0200)
committerTomas Krizek <tomas.krizek@nic.cz>
Tue, 25 May 2021 12:39:44 +0000 (14:39 +0200)
daemon/tls_session_ticket-srv.c
lib/cache/impl.h
lib/test_zonecut.c
lib/utils.h

index b1622fac1be9662b137c6689e61c100a9984530c..315eb48e13f4eacaa6a2a9b9235bdb13ea95421a 100644 (file)
@@ -224,7 +224,7 @@ tst_ctx_t * tls_session_ticket_ctx_create(uv_loop_t *loop, const char *secret,
        if (!kr_assume(loop && (!secret_len || secret)))
                return NULL;
        #if GNUTLS_VERSION_NUMBER < 0x030500
-               /* We would need different SESSION_KEY_SIZE; avoid assert. */
+               /* We would need different SESSION_KEY_SIZE; avoid an error. */
                return NULL;
        #endif
        tst_ctx_t *ctx = tst_key_create(secret, secret_len, loop);
index 53b9699b15b64dfa150aa7ad4a8cb2cb9d70411f..6703617006f1947f77aae3c31de82d0164d18a33 100644 (file)
@@ -341,7 +341,7 @@ enum {
 /** Materialize RRset + RRSIGs into ans->rrsets[id].
  * LATER(optim.): it's slightly wasteful that we allocate knot_rrset_t for the packet
  *
- * \return error code.  They are all bad conditions and "guarded" by assert.
+ * \return error code.  They are all bad conditions and "guarded" by kr_assume().
  */
 int entry2answer(struct answer *ans, int id,
                const struct entry_h *eh, const uint8_t *eh_bound,
index 0c85b0c6928e708fdba3e523137196fe7c8d41cb..a00aa9f671b5032b6cf7a3a58800f4a6b0f4fc1c 100644 (file)
@@ -16,7 +16,7 @@ static void test_zonecut_params(void **state)
        kr_zonecut_deinit(NULL);
        kr_zonecut_set(NULL, NULL);
        kr_zonecut_set(&cut, NULL);
-       /* TODO triggerring inner assert:
+       /* TODO triggerring inner assertion:
        assert_int_not_equal(kr_zonecut_add(NULL, NULL, NULL, 0), 0);
        */
        assert_null((void *)kr_zonecut_find(NULL, NULL));
index fa53c1a582996483cf281cf288b5d70a252ddd16..82bcf66e4db14856bce6dc07e5f36a4d41c4e16c 100644 (file)
@@ -46,7 +46,7 @@ typedef void (*trace_log_f)(const struct kr_request *request, const char *msg);
 #define kr_log_critical(...) kr_log_error(__VA_ARGS__)
 #define kr_log_deprecate(...) fprintf(stderr, "deprecation WARNING: " __VA_ARGS__)
 
-/** assert() but always, regardless of -DNDEBUG.  See also kr_assume(). */
+/** Assert() but always, regardless of -DNDEBUG.  See also kr_assume(). */
 #define kr_require(expression) do { if (!(expression)) { \
                kr_fail(true, #expression, __func__, __FILE__, __LINE__); \
                __builtin_unreachable(); /* aid code analysis */ \