merge-script
286de1e7b3
Merge bitcoin/bitcoin#34093: netif: fix compilation warning in QueryDefaultGatewayImpl()
c1361fc42d netif: fix compilation warning in QueryDefaultGatewayImpl() (MarcoFalke)
Pull request description:
```
src/common/netif.cpp:137:51: error: comparison of integers of different signs: 'int64_t' (aka 'long') and 'unsigned long' [-Werror,-Wsign-compare]
137 | for (nlmsghdr* hdr = (nlmsghdr*)response; NLMSG_OK(hdr, recv_result); hdr = NLMSG_NEXT(hdr, recv_result)) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/netlink/netlink.h:220:31: note: expanded from macro 'NLMSG_OK'
220 | #define NLMSG_OK(_hdr, _len) NL_ITEM_OK(_hdr, _len, NLMSG_HDRLEN, _NLMSG_LEN)
| ^ ~~~~ ~~~~~~~~~~~~
/usr/include/netlink/netlink.h:203:10: note: expanded from macro 'NL_ITEM_OK'
203 | ((_len) >= _hlen && _LEN_M(_ptr) >= _hlen && _LEN_M(_ptr) <= (_len))
| ~~~~ ^ ~~~~~
1 error generated.
```
Happens on FreeBSD 15.0, with the default compiler (Clang 19).
On FreeBSD 14, `/usr/include/netlink/netlink.h` contains:
```
#define NLMSG_HDRLEN ((int)sizeof(struct nlmsghdr))
```
On FreeBSD 15, `/usr/include/netlink/netlink.h` contains:
```
#define NLMSG_HDRLEN (sizeof(struct nlmsghdr))
```
ACKs for top commit:
maflcko:
lgtm ACK c1361fc42d
hebasto:
ACK c1361fc42d.
Tree-SHA512: f8f00e2106fdf91550ab388a65bb8408fcf8c4557da9614e2e1dd90e70fc010dff72bfabbbec4315335afdedb546f7b554f5c98133c5aa1d3077c5641d94b956
2026-02-27 11:59:03 +00:00
..
2026-02-24 10:08:47 -05:00
2026-02-27 11:59:03 +00:00
2026-02-18 21:29:07 +01:00
2026-02-02 19:32:14 +01:00
2026-01-30 11:50:17 +00:00
2026-02-20 15:58:48 -08:00
2026-01-27 13:08:50 +01:00
2026-02-20 16:49:52 +01:00
2026-02-26 11:28:55 -03:00
2026-02-13 11:11:14 +00:00
2026-02-03 11:19:01 +01:00
2026-02-02 17:22:31 +00:00
2026-02-24 06:54:17 -05:00
2026-02-25 17:38:13 +01:00
2026-02-09 15:55:58 -05:00
2026-02-20 10:31:10 +00:00
2026-02-24 06:54:17 -05:00
2026-02-21 12:18:56 +01:00
2026-02-02 15:21:14 +00:00
2026-02-13 08:50:50 +01:00
2026-02-26 12:44:11 -08:00
2026-01-31 10:41:50 +00:00
2026-02-26 12:44:11 -08:00
2026-02-26 12:44:11 -08:00
2026-01-29 14:38:35 +00:00
2026-01-29 14:38:35 +00:00
2026-02-06 08:37:19 +01:00
2026-01-14 23:04:12 +01:00
2026-01-20 23:45:29 +01:00
2026-01-14 23:04:12 +01:00
2026-01-21 19:40:25 +05:30
2026-02-13 10:52:25 +01:00
2026-01-19 20:20:13 +01:00
2026-01-14 11:38:07 -08:00
2026-02-17 21:40:46 +05:30
2026-01-14 23:04:12 +01:00
2026-01-14 23:04:12 +01:00
2026-02-02 17:22:31 +00:00
2026-02-24 12:05:17 -05:00
2026-02-20 09:27:17 +01:00
2026-02-23 15:56:25 +01:00
2026-02-23 15:56:25 +01:00
2026-02-09 13:32:28 +00:00
2026-01-19 12:57:16 +01:00
2026-02-02 17:22:31 +00:00
2026-02-02 18:42:44 +01:00
2026-01-14 23:04:12 +01:00
2026-02-13 10:52:25 +01:00
2026-02-17 12:55:26 +01:00
2026-02-17 12:55:26 +01:00
2026-02-02 17:22:31 +00:00
2026-02-19 12:41:12 -08:00
2026-01-30 16:17:12 -05:00
2026-02-20 15:58:48 -08:00
2026-02-02 17:22:31 +00:00
2026-02-02 17:22:31 +00:00
2026-01-14 11:38:07 -08:00
2026-02-26 10:33:29 +00:00
2026-02-11 19:46:19 -05:00
2026-02-06 18:00:18 -08:00
2026-02-13 11:17:26 +00:00
2026-01-14 23:04:12 +01:00
2026-01-22 10:35:14 -05:00
2026-01-23 13:25:42 +01:00
2026-01-20 23:59:41 +01:00
2026-01-20 23:59:41 +01:00
2026-01-14 19:39:01 +01:00
2026-01-14 19:36:14 +01:00
2026-01-14 23:04:12 +01:00
2026-02-11 19:46:12 -05:00
2026-02-11 19:46:12 -05:00
2026-02-06 07:56:57 +01:00
2026-01-14 23:03:47 +01:00
2026-02-02 17:22:31 +00:00
2026-01-14 23:04:12 +01:00
2026-02-09 13:32:28 +00:00
2026-02-02 17:55:10 +01:00
2026-02-02 17:22:31 +00:00
2026-02-07 23:01:17 +01:00
2026-02-02 17:22:31 +00:00
2026-02-02 17:22:31 +00:00
2026-01-20 15:30:46 +01:00
2026-02-08 08:23:37 +01:00
2026-01-02 16:49:23 -08:00
2026-02-24 10:08:47 -05:00
2026-02-24 10:08:47 -05:00
2026-02-24 10:08:47 -05:00
2026-02-24 10:45:49 -05:00
2025-12-30 12:12:26 -08:00
2026-02-25 17:38:13 +01:00
2026-02-20 16:49:15 +01:00
2026-02-02 17:22:31 +00:00