diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-09-04 10:50:09 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-09-04 10:50:09 -0400 |
commit | 539158f2be6001a7849b7a85e053e43d7d78195a (patch) | |
tree | 7850ae2117e5307922cf0e52b6875e70633ea55b /src/app | |
parent | 34f3fcef408a91275561e86afc3bd1d2da3b0375 (diff) | |
download | tor-539158f2be6001a7849b7a85e053e43d7d78195a.tar.gz tor-539158f2be6001a7849b7a85e053e43d7d78195a.zip |
config: use ptrdiff_t for all field-offset members.
Previously we used int here, but it is more correct to use
ptrdiff_t. (This never actually matters for our code in practice,
since the structure we are managing here never exceed INT_MAX in
size.)
Diffstat (limited to 'src/app')
-rw-r--r-- | src/app/config/confparse.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app/config/confparse.h b/src/app/config/confparse.h index b788e2cd1b..fc07996aab 100644 --- a/src/app/config/confparse.h +++ b/src/app/config/confparse.h @@ -72,7 +72,7 @@ typedef struct config_format_t { const struct_member_t *extra; /** The position of a config_suite_t pointer within the toplevel object, * or -1 if there is no such pointer. */ - int config_suite_offset; + ptrdiff_t config_suite_offset; } config_format_t; /** |