aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-06-19 08:14:59 -0400
committerNick Mathewson <nickm@torproject.org>2019-06-24 17:50:43 -0400
commitf0074372928829835adf6aa2dde9af712097c7c0 (patch)
treebe8c9bf52ab2477f318f26196bd8841c84ec60fa
parentc60a85d22ab87fef5a7de2fee616ad112835177b (diff)
downloadtor-f0074372928829835adf6aa2dde9af712097c7c0.tar.gz
tor-f0074372928829835adf6aa2dde9af712097c7c0.zip
Further clarify our clarification about the type of POSINT
-rw-r--r--src/lib/conf/conftypes.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/conf/conftypes.h b/src/lib/conf/conftypes.h
index b03234b62c..e66ab3d5aa 100644
--- a/src/lib/conf/conftypes.h
+++ b/src/lib/conf/conftypes.h
@@ -73,10 +73,10 @@ typedef enum config_type_t {
typedef union {
char **STRING;
char **FILENAME;
- 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].
- */
+ int *POSINT; /* yes, this is really an int, and not an unsigned int. For
+ * historical reasons, many configuration values are restricted
+ * to the range [0,INT_MAX], and stored in signed ints.
+ */
uint64_t *UINT64;
int *INT;
int *INTERVAL;