Commit cc00bdf8 authored by Vladimír Čunát's avatar Vladimír Čunát

Merge !880: nitpicks: comments and .gitignore

parents d22237bb b76929cf
Pipeline #54213 failed with stages
in 18 minutes and 11 seconds
*.6
*.Plo
*.a
*.d
*.db
*.dylib
*.dylib.*
......
......@@ -568,7 +568,7 @@ static ssize_t stash_rrset(struct kr_cache *cache, const struct kr_query *qry,
key = key_exact_type(k, rr->type);
}
/* Compute materialized sizes of the new data. */
/* Compute in-cache size for the new data. */
const knot_rdataset_t *rds_sigs = rr_sigs ? &rr_sigs->rrs : NULL;
const int rr_ssize = rdataset_dematerialize_size(&rr->rrs);
assert(rr_ssize == to_even(rr_ssize));
......
......@@ -82,7 +82,7 @@ struct kr_layer_api {
/** Paired to begin, called both on successes and failures. */
int (*finish)(kr_layer_t *ctx);
/** Processing an answer from upstream or the answer to the request.
/** Process an answer from upstream or from cache.
* Lua API: call is omitted iff (state & KR_STATE_FAIL). */
int (*consume)(kr_layer_t *ctx, knot_pkt_t *pkt);
......
......@@ -230,7 +230,7 @@ static inline uint64_t kr_rand_bytes(unsigned int size)
kr_rnd_buffered(data, size);
/* I would have liked to dump the random data into a size_t directly,
* but that would work well only on little-endian machines,
* so intsead I hope that the compiler will optimize this out.
* so instead I hope that the compiler will optimize this out.
* (Tested via reading assembly from usual gcc -O2 setup.)
* Alternatively we could waste more rnd bytes, but that seemed worse. */
result = 0;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment