aboutsummaryrefslogtreecommitdiff
path: root/src/util/gnunet-service-resolver.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/gnunet-service-resolver.c')
-rw-r--r--src/util/gnunet-service-resolver.c7
1 files changed, 6 insertions, 1 deletions
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,
704 return GNUNET_OK; 704 return GNUNET_OK;
705} 705}
706 706
707
707static void 708static void
708cache_answers (const char *name, 709cache_answers (const char *name,
709 struct GNUNET_DNSPARSER_Record *records, 710 struct GNUNET_DNSPARSER_Record *records,
@@ -738,6 +739,7 @@ cache_answers (const char *name,
738 } 739 }
739} 740}
740 741
742
741/** 743/**
742 * We got a result from DNS. Add it to the cache and 744 * We got a result from DNS. Add it to the cache and
743 * see if we can make our client happy... 745 * see if we can make our client happy...
@@ -1366,12 +1368,15 @@ GNUNET_SERVICE_MAIN (
1366/** 1368/**
1367 * MINIMIZE heap size (way below 128k) since this process doesn't need much. 1369 * MINIMIZE heap size (way below 128k) since this process doesn't need much.
1368 */ 1370 */
1369void __attribute__ ((constructor)) GNUNET_RESOLVER_memory_init () 1371void __attribute__ ((constructor))
1372GNUNET_RESOLVER_memory_init ()
1370{ 1373{
1371 mallopt (M_TRIM_THRESHOLD, 4 * 1024); 1374 mallopt (M_TRIM_THRESHOLD, 4 * 1024);
1372 mallopt (M_TOP_PAD, 1 * 1024); 1375 mallopt (M_TOP_PAD, 1 * 1024);
1373 malloc_trim (0); 1376 malloc_trim (0);
1374} 1377}
1378
1379
1375#endif 1380#endif
1376 1381
1377 1382