diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-10-31 13:03:48 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-10-31 13:03:48 +0100 |
commit | 7e3cf5f461eb4fbb7581672bf0835da07c378136 (patch) | |
tree | bdc3874b7894242b095b892f1ed3e81a4d4f06c0 /src/util/gnunet-service-resolver.c | |
parent | 01b480d6d026e0c537dc284a7e7df2c0320a3528 (diff) | |
download | gnunet-7e3cf5f461eb4fbb7581672bf0835da07c378136.tar.gz gnunet-7e3cf5f461eb4fbb7581672bf0835da07c378136.zip |
tighten formatting rules
Diffstat (limited to 'src/util/gnunet-service-resolver.c')
-rw-r--r-- | src/util/gnunet-service-resolver.c | 7 |
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 | |||
707 | static void | 708 | static void |
708 | cache_answers (const char *name, | 709 | cache_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 | */ |
1369 | void __attribute__ ((constructor)) GNUNET_RESOLVER_memory_init () | 1371 | void __attribute__ ((constructor)) |
1372 | GNUNET_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 | ||