]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Further clarify our clarification about the type of POSINT
authorNick Mathewson <nickm@torproject.org>
Wed, 19 Jun 2019 12:14:59 +0000 (08:14 -0400)
committerNick Mathewson <nickm@torproject.org>
Mon, 24 Jun 2019 21:50:43 +0000 (17:50 -0400)
src/lib/conf/conftypes.h

index b03234b62c578fdba894aef0c0125b5a8e33238b..e66ab3d5aa629ddf3a4d6d09622bfe5e9b86b0ff 100644 (file)
@@ -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;