1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
commit 9faf45f67970778277c533cc7acbe3c73bfe11c2
Author: Philippe Troin <phil+github-commits@fifi.org>
Date: Wed Apr 23 16:04:20 2025 -0700
C23 compatibility.
bool is a keyword in C23.
diff --git a/src/kern.c b/src/kern.c
index 27f8dd4..04f1c36 100644
--- a/src/kern.c
+++ b/src/kern.c
@@ -104,11 +104,11 @@ void k_set_rcvbuf(int bufsize, int minsize)
* in the kernel and "panic". The kernel patch for netinet/ip_raw.c
* coming with this distribution fixes it.
*/
-void k_hdr_include(int bool)
+void k_hdr_include(int flag)
{
#ifdef IP_HDRINCL
- if (setsockopt(igmp_socket, IPPROTO_IP, IP_HDRINCL, &bool, sizeof(bool)) < 0)
- logit(LOG_ERR, errno, "Failed setting socket IP_HDRINCL %u", bool);
+ if (setsockopt(igmp_socket, IPPROTO_IP, IP_HDRINCL, &flag, sizeof(flag)) < 0)
+ logit(LOG_ERR, errno, "Failed setting socket IP_HDRINCL %u", flag);
#endif
}
|