OCaml 4.14.0 rebuild
[arch-packages.git] / fping / trunk / 0002-fix-socket4-vs-socket6-typo-249-thanks-sfan5.patch
blob5e61b2c1ea214f8803e0b272685ac5fbe52b3df2
1 From ab1ed993badc1a6978b95c9d17a5e8b56fff4598 Mon Sep 17 00:00:00 2001
2 From: David Schweikert <david@schweikert.ch>
3 Date: Sat, 5 Mar 2022 16:58:47 +0100
4 Subject: [PATCH] fix socket4 vs socket6 typo (#249, thanks @sfan5)
6 ---
7 src/fping.c | 2 +-
8 1 file changed, 1 insertion(+), 1 deletion(-)
10 diff --git a/src/fping.c b/src/fping.c
11 index 0bd2b70..af16061 100644
12 --- a/src/fping.c
13 +++ b/src/fping.c
14 @@ -1108,7 +1108,7 @@ int main(int argc, char** argv)
15 socket_set_src_addr_ipv4(socket4, &src_addr, (socktype4 == SOCK_DGRAM) ? &ident4 : NULL);
17 #ifdef IPV6
18 - if (socket6 >= 0 && (src_addr6_set || socktype4 == SOCK_DGRAM)) {
19 + if (socket6 >= 0 && (src_addr6_set || socktype6 == SOCK_DGRAM)) {
20 socket_set_src_addr_ipv6(socket6, &src_addr6, (socktype6 == SOCK_DGRAM) ? &ident6 : NULL);
22 #endif