diff options
author | Nick Mathewson <nickm@torproject.org> | 2016-06-16 10:43:01 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2016-06-16 10:43:01 -0400 |
commit | 79370914d1a88adde03dc514bf94fc3e6c3c030c (patch) | |
tree | 207e3f7b08986cdff2adc2b8c699cfc89c4305e6 /src/common/util.h | |
parent | 41cb26c1696b2e91f6ffe28c98ab471b925de9e8 (diff) | |
download | tor-79370914d1a88adde03dc514bf94fc3e6c3c030c.tar.gz tor-79370914d1a88adde03dc514bf94fc3e6c3c030c.zip |
tests for size_mul_check__()
it's important, and we should make sure we got it right.
Diffstat (limited to 'src/common/util.h')
-rw-r--r-- | src/common/util.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/util.h b/src/common/util.h index 4c5070e65b..3a056bcd7d 100644 --- a/src/common/util.h +++ b/src/common/util.h @@ -535,6 +535,10 @@ STATIC int format_helper_exit_status(unsigned char child_state, #endif +#ifdef TOR_UNIT_TESTS +int size_mul_check__(const size_t x, const size_t y); +#endif + #define ARRAY_LENGTH(x) ((sizeof(x)) / sizeof(x[0])) #endif |