From 7e3cf5f461eb4fbb7581672bf0835da07c378136 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Thu, 31 Oct 2019 13:03:48 +0100 Subject: tighten formatting rules --- src/util/gnunet-service-resolver.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/util/gnunet-service-resolver.c') diff --git a/src/util/gnunet-service-resolver.c b/src/util/gnunet-service-resolver.c index d7d456fba..c82a18ab8 100644 --- a/src/util/gnunet-service-resolver.c +++ b/src/util/gnunet-service-resolver.c @@ -704,6 +704,7 @@ pack (const char *hostname, return GNUNET_OK; } + static void cache_answers (const char *name, struct GNUNET_DNSPARSER_Record *records, @@ -738,6 +739,7 @@ cache_answers (const char *name, } } + /** * We got a result from DNS. Add it to the cache and * see if we can make our client happy... @@ -1366,12 +1368,15 @@ GNUNET_SERVICE_MAIN ( /** * MINIMIZE heap size (way below 128k) since this process doesn't need much. */ -void __attribute__ ((constructor)) GNUNET_RESOLVER_memory_init () +void __attribute__ ((constructor)) +GNUNET_RESOLVER_memory_init () { mallopt (M_TRIM_THRESHOLD, 4 * 1024); mallopt (M_TOP_PAD, 1 * 1024); malloc_trim (0); } + + #endif -- cgit v1.2.3