summaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2007-04-11 13:18:25 +0000
committerNick Mathewson <nickm@torproject.org>2007-04-11 13:18:25 +0000
commit38a5f0950250ad21e48ad60c1036621c58ecd9d4 (patch)
treea792258f5224faff370d13bc0fd541211da439fb /src/or/config.c
parent1c8f9b319b6cd94c1c00731349c9dda6ec723979 (diff)
downloadtor-38a5f0950250ad21e48ad60c1036621c58ecd9d4.tar.gz
tor-38a5f0950250ad21e48ad60c1036621c58ecd9d4.zip
r12349@catbus: nickm | 2007-04-11 09:18:15 -0400
Add code to shrink the cell memory pool by discarding empty chunks that have been empty for the last 60 seconds. Also, instead of having test.c duplicate declarations for exposed functions, put them inside #ifdef foo_PRIVATE blocks in the headers. This prevents bugs where test.c gets out of sync. svn:r9944
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 33065427c6..c7b7fdf24b 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -11,6 +11,8 @@ const char config_c_id[] = \
* \brief Code to parse and interpret configuration files.
**/
+#define CONFIG_PRIVATE
+
#include "or.h"
#ifdef MS_WINDOWS
#include <shlobj.h>
@@ -594,8 +596,6 @@ static le_version_t decode_libevent_version(void);
static void check_libevent_version(const char *m, int server);
#endif
-/*static*/ or_options_t *options_new(void);
-
/** Magic value for or_options_t. */
#define OR_OPTIONS_MAGIC 9090909