diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-10-01 12:42:26 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-10-01 13:01:20 -0400 |
commit | f17591b8e504af9e088bd9df900639c83f5300fe (patch) | |
tree | 17cabaefaeb0539f74355e350c894ee31aa9e463 /src/lib/dispatch/dispatch_cfg.h | |
parent | 6f3f93d86c03a7e38e6ba5b64e487aebcd0642bc (diff) | |
download | tor-f17591b8e504af9e088bd9df900639c83f5300fe.tar.gz tor-f17591b8e504af9e088bd9df900639c83f5300fe.zip |
Rename max_in_sl to max_in_u16_sl, and expose it as STATIC.
Since we want to make this function slightly more visible for testing
purposes, it needs a better name.
Diffstat (limited to 'src/lib/dispatch/dispatch_cfg.h')
-rw-r--r-- | src/lib/dispatch/dispatch_cfg.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/dispatch/dispatch_cfg.h b/src/lib/dispatch/dispatch_cfg.h index 61fade7240..348dce8d40 100644 --- a/src/lib/dispatch/dispatch_cfg.h +++ b/src/lib/dispatch/dispatch_cfg.h @@ -8,6 +8,7 @@ #define TOR_DISPATCH_CFG_H #include "lib/dispatch/msgtypes.h" +#include "lib/testsupport/testsupport.h" /** * A "dispatch_cfg" is the configuration used to set up a dispatcher. @@ -36,4 +37,9 @@ int dcfg_add_recv(dispatch_cfg_t *cfg, message_id_t msg, void dcfg_free_(dispatch_cfg_t *cfg); +#ifdef DISPATCH_NEW_PRIVATE +struct smartlist_t; +STATIC int max_in_u16_sl(const struct smartlist_t *sl, int dflt); +#endif + #endif /* !defined(TOR_DISPATCH_CFG_H) */ |