diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-06-12 16:33:40 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-06-15 11:30:24 -0400 |
commit | fe9d15cf4b392bd6daef47f3aab97adeeebe7402 (patch) | |
tree | 0bc1de862f4e14deb90cb263c0d6ae2829b49db6 /src/app/config/confparse.h | |
parent | ac5e44d9ce9d07c05b4ba0cb21f058a6322692ec (diff) | |
download | tor-fe9d15cf4b392bd6daef47f3aab97adeeebe7402.tar.gz tor-fe9d15cf4b392bd6daef47f3aab97adeeebe7402.zip |
Remove the PORT configuration type: nothing uses it.
All of our port configurations now use an extended format.
Diffstat (limited to 'src/app/config/confparse.h')
-rw-r--r-- | src/app/config/confparse.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/app/config/confparse.h b/src/app/config/confparse.h index 57f1ec1762..2c923eb6b9 100644 --- a/src/app/config/confparse.h +++ b/src/app/config/confparse.h @@ -17,11 +17,9 @@ typedef enum config_type_t { CONFIG_TYPE_STRING = 0, /**< An arbitrary string. */ CONFIG_TYPE_FILENAME, /**< A filename: some prefixes get expanded. */ - CONFIG_TYPE_UINT, /**< A non-negative integer less than MAX_INT */ + CONFIG_TYPE_POSINT, /**< A non-negative integer less than MAX_INT */ CONFIG_TYPE_INT, /**< Any integer. */ CONFIG_TYPE_UINT64, /**< A value in range 0..UINT64_MAX */ - CONFIG_TYPE_PORT, /**< A port from 1...65535, 0 for "not set", or - * "auto". */ CONFIG_TYPE_INTERVAL, /**< A number of seconds, with optional units*/ CONFIG_TYPE_MSEC_INTERVAL,/**< A number of milliseconds, with optional * units */ @@ -57,8 +55,8 @@ typedef enum config_type_t { typedef union { char **STRING; char **FILENAME; - int *UINT; /* yes, really: Even though the confparse type is called - * "UINT", it still uses the C int type -- it just enforces that + int *POSINT; /* yes, really: Even though the confparse type is called + * "POSINT", it still uses the C int type -- it just enforces that * the values are in range [0,INT_MAX]. */ uint64_t *UINT64; |