diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-04-18 11:19:14 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-04-22 15:55:09 -0400 |
commit | 2d7b5c6fe5dc46b7e7cd040e6723e25d12015985 (patch) | |
tree | db395133c56e01ab76582757bbccd28b5a8e0265 /src/or/directory.h | |
parent | 9aaed729c188a1f560d025388374c7dc1135478e (diff) | |
download | tor-2d7b5c6fe5dc46b7e7cd040e6723e25d12015985.tar.gz tor-2d7b5c6fe5dc46b7e7cd040e6723e25d12015985.zip |
Change the type of "download schedule" from smartlist to int.
This is done as follows:
* Only one function (find_dl_schedule()) actually returned a
smartlist. Now it returns an int.
* The CSV_INTERVAL type has been altered to ignore everything
after the first comma, and to store the value before the first
comma in an int.
Diffstat (limited to 'src/or/directory.h')
-rw-r--r-- | src/or/directory.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/or/directory.h b/src/or/directory.h index aa4d29a5bb..e082bbf7b1 100644 --- a/src/or/directory.h +++ b/src/or/directory.h @@ -259,9 +259,9 @@ STATIC char* authdir_type_to_string(dirinfo_type_t auth); STATIC const char * dir_conn_purpose_to_string(int purpose); STATIC int should_use_directory_guards(const or_options_t *options); STATIC compression_level_t choose_compression_level(ssize_t n_bytes); -STATIC const smartlist_t *find_dl_schedule(const download_status_t *dls, - const or_options_t *options); -STATIC int find_dl_min_delay(download_status_t *dls, +STATIC int find_dl_schedule(const download_status_t *dls, + const or_options_t *options); +STATIC int find_dl_min_delay(const download_status_t *dls, const or_options_t *options); STATIC int next_random_exponential_delay(int delay, |