mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 21:38:07 -05:00
95024494f3
* gnu/packages/games.scm (bsd-games): New variable. New patches, taken from Arch and Debian: * gnu/packages/patches/bsd-games-2.17-64bit.patch * gnu/packages/patches/bsd-games-bad-ntohl-cast.patch * gnu/packages/patches/bsd-games-gamescreen.h.patch * gnu/packages/patches/bsd-games-getline.patch * gnu/packages/patches/bsd-games-null-check.patch * gnu/packages/patches/bsd-games-number.c-and-test.patch * gnu/packages/patches/bsd-games-prevent-name-collisions.patch * gnu/packages/patches/bsd-games-stdio.h.patch New patches with our customizations (configure-config built after Arch's): * gnu/packages/patches/bsd-games-add-configure-config.patch * gnu/packages/patches/bsd-games-add-wrapper.patch * gnu/packages/patches/bsd-games-dont-install-empty-files.patch Signed-off-by: Nicolas Goaziou <mail@nicolasgoaziou.fr>
24 lines
741 B
Diff
24 lines
741 B
Diff
diff --git a/hunt/hunt/hunt.c b/hunt/hunt/hunt.c
|
|
index 11f4c44..28321bc 100644
|
|
--- a/hunt/hunt/hunt.c
|
|
+++ b/hunt/hunt/hunt.c
|
|
@@ -394,7 +394,8 @@ broadcast_vec(s, vector)
|
|
|
|
vec_cnt = 0;
|
|
for (ip = ifp; ip; ip = ip->ifa_next)
|
|
- if ((ip->ifa_addr->sa_family == AF_INET) &&
|
|
+ if (ip->ifa_addr &&
|
|
+ (ip->ifa_addr->sa_family == AF_INET) &&
|
|
(ip->ifa_flags & IFF_BROADCAST))
|
|
vec_cnt++;
|
|
|
|
@@ -405,7 +406,8 @@ broadcast_vec(s, vector)
|
|
|
|
vec_cnt = 0;
|
|
for (ip = ifp; ip; ip = ip->ifa_next)
|
|
- if ((ip->ifa_addr->sa_family == AF_INET) &&
|
|
+ if (ip->ifa_addr &&
|
|
+ (ip->ifa_addr->sa_family == AF_INET) &&
|
|
(ip->ifa_flags & IFF_BROADCAST))
|
|
memcpy(&(*vector)[vec_cnt++], ip->ifa_broadaddr,
|
|
sizeof(struct sockaddr_in));
|