diff options
Diffstat (limited to 'src/or')
-rw-r--r-- | src/or/statefile.c | 3 | ||||
-rw-r--r-- | src/or/statefile.h | 4 |
2 files changed, 6 insertions, 1 deletions
diff --git a/src/or/statefile.c b/src/or/statefile.c index aac8850b16..8736c35a2d 100644 --- a/src/or/statefile.c +++ b/src/or/statefile.c @@ -4,6 +4,7 @@ * Copyright (c) 2007-2013, The Tor Project, Inc. */ /* See LICENSE for licensing information */ +#define STATEFILE_PRIVATE #include "or.h" #include "circuitstats.h" #include "config.h" @@ -449,7 +450,7 @@ or_state_save(time_t now) /** Return the config line for transport <b>transport</b> in the current state. * Return NULL if there is no config line for <b>transport</b>. */ -static config_line_t * +STATIC config_line_t * get_transport_in_state_by_name(const char *transport) { or_state_t *or_state = get_or_state(); diff --git a/src/or/statefile.h b/src/or/statefile.h index 762b0f5ee1..c1413ff952 100644 --- a/src/or/statefile.h +++ b/src/or/statefile.h @@ -18,5 +18,9 @@ int or_state_load(void); int or_state_loaded(void); void or_state_free_all(void); +#ifdef STATEFILE_PRIVATE +STATIC config_line_t *get_transport_in_state_by_name(const char *transport); +#endif + #endif |