diff options
author | Nick Mathewson <nickm@torproject.org> | 2019-06-12 13:49:47 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2019-06-15 11:28:19 -0400 |
commit | ac5e44d9ce9d07c05b4ba0cb21f058a6322692ec (patch) | |
tree | 36d38c51bfdcb269761537b0839c21da9709fd10 /src/app/config/confparse.c | |
parent | 438b7eec856b0caced7112dd0c87a8dae8df0c75 (diff) | |
download | tor-ac5e44d9ce9d07c05b4ba0cb21f058a6322692ec.tar.gz tor-ac5e44d9ce9d07c05b4ba0cb21f058a6322692ec.zip |
Renaming: CONFIG_TYPE_UINT -> CONFIG_TYPE_POSINT
This name has been a historical source of confusion, since "uint"
usually suggests "unsigned int" to people, when the real type is
"nonnegative int".
Diffstat (limited to 'src/app/config/confparse.c')
-rw-r--r-- | src/app/config/confparse.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/app/config/confparse.c b/src/app/config/confparse.c index 8681f648da..cf83df728a 100644 --- a/src/app/config/confparse.c +++ b/src/app/config/confparse.c @@ -181,7 +181,7 @@ config_assign_value(const config_format_t *fmt, void *options, } /* fall through */ case CONFIG_TYPE_INT: - case CONFIG_TYPE_UINT: + case CONFIG_TYPE_POSINT: i = (int)tor_parse_long(c->value, 10, var->type==CONFIG_TYPE_INT ? INT_MIN : 0, var->type==CONFIG_TYPE_PORT ? 65535 : INT_MAX, @@ -580,7 +580,7 @@ config_get_assigned_option(const config_format_t *fmt, const void *options, case CONFIG_TYPE_CSV_INTERVAL: case CONFIG_TYPE_INTERVAL: case CONFIG_TYPE_MSEC_INTERVAL: - case CONFIG_TYPE_UINT: + case CONFIG_TYPE_POSINT: case CONFIG_TYPE_INT: /* This means every or_options_t uint or bool element * needs to be an int. Not, say, a uint16_t or char. */ @@ -786,7 +786,7 @@ config_clear(const config_format_t *fmt, void *options, case CONFIG_TYPE_CSV_INTERVAL: case CONFIG_TYPE_INTERVAL: case CONFIG_TYPE_MSEC_INTERVAL: - case CONFIG_TYPE_UINT: + case CONFIG_TYPE_POSINT: case CONFIG_TYPE_INT: case CONFIG_TYPE_PORT: case CONFIG_TYPE_BOOL: |