]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Add parentheses around macro arguement 'msec'
authorMark Andrews <marka@isc.org>
Thu, 19 Oct 2023 23:30:48 +0000 (10:30 +1100)
committerMark Andrews <marka@isc.org>
Thu, 19 Oct 2023 23:30:48 +0000 (10:30 +1100)
The is needed to ensure that the multiplication is correctly done.
This was reported by Jinmei Tatuya.

lib/isc/netmgr/uv-compat.h

index 3a103874e4ab2ab9554eba87014a74043ec78073..eea874477a4d6ed0d35d3a0403dd040cde64d622 100644 (file)
@@ -72,7 +72,7 @@ uv_tcp_close_reset(uv_tcp_t *handle, uv_close_cb close_cb);
 #endif
 
 #if UV_VERSION_HEX < UV_VERSION(1, 34, 0)
-#define uv_sleep(msec) usleep(msec * 1000)
+#define uv_sleep(msec) usleep((msec) * 1000)
 #endif /* UV_VERSION_HEX < UV_VERSION(1, 34, 0) */
 
 #if UV_VERSION_HEX < UV_VERSION(1, 27, 0)