From: Vladimír Čunát Date: Thu, 26 Jan 2017 14:50:26 +0000 (+0100) Subject: docs: misc warning fixes X-Git-Tag: v1.2.1~6^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3c834c1523c894477cb5a26a19b4c32c7ead733d;p=thirdparty%2Fknot-resolver.git docs: misc warning fixes --- diff --git a/daemon/README.rst b/daemon/README.rst index e55006360..c6365f1ba 100644 --- a/daemon/README.rst +++ b/daemon/README.rst @@ -804,10 +804,11 @@ daemons or manipulated from other processes, making for example synchronised loa Get or set maximum cache TTL. .. note:: The `ttl` value must be in range `(min_ttl, 4294967295)`. - + .. warning:: This settings applies only to currently open cache, it will not persist if the cache is closed or reopened. .. code-block:: lua + -- Get maximum TTL cache.max_ttl() 518400 @@ -823,10 +824,11 @@ daemons or manipulated from other processes, making for example synchronised loa Get or set minimum cache TTL. Any entry inserted into cache with TTL lower than minimal will be overriden to minimum TTL. Forcing TTL higher than specified violates DNS standards, use with care. .. note:: The `ttl` value must be in range `<0, max_ttl)`. - + .. warning:: This settings applies only to currently open cache, it will not persist if the cache is closed or reopened. .. code-block:: lua + -- Get minimum TTL cache.min_ttl() 0 diff --git a/lib/generic/lru.h b/lib/generic/lru.h index e72ec7b2e..ec91d6add 100644 --- a/lib/generic/lru.h +++ b/lib/generic/lru.h @@ -245,4 +245,4 @@ static inline uint lru_capacity_impl(struct lru *lru) } /** @endcond */ - +/** @} (addtogroup generics) */