]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Change the isc_statscounter_t type from int to C99 int_fast64_t type
authorDiego Fronza <diego@isc.org>
Tue, 5 Nov 2019 20:48:47 +0000 (17:48 -0300)
committerOndřej Surý <ondrej@sury.org>
Wed, 6 Nov 2019 07:43:46 +0000 (08:43 +0100)
For TCP high-water work, we need to keep the used integer types widths
in sync.

Note: int_fast32_t is used on WIN32 platform

lib/isc/include/isc/types.h

index f8e5ae6a9a09099bd12362ca181a1d83d7fd9d6b..168076daf62a45f82104e8759f5de74b1f89feec 100644 (file)
@@ -72,7 +72,11 @@ typedef struct isc_socket            isc_socket_t;           /*%< Socket */
 typedef struct isc_socketevent         isc_socketevent_t;      /*%< Socket Event */
 typedef struct isc_socketmgr           isc_socketmgr_t;        /*%< Socket Manager */
 typedef struct isc_stats               isc_stats_t;            /*%< Statistics */
-typedef int                            isc_statscounter_t;     /*%< Statistics Counter */
+#if defined(_WIN32) && !defined(_WIN64)
+       typedef int_fast32_t            isc_statscounter_t;     /*%< Statistics Counter */
+#else
+       typedef int_fast64_t            isc_statscounter_t;
+#endif
 typedef struct isc_symtab              isc_symtab_t;           /*%< Symbol Table */
 typedef struct isc_task                        isc_task_t;             /*%< Task */
 typedef ISC_LIST(isc_task_t)           isc_tasklist_t;         /*%< Task List */