LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File bsd-games-2.17-strictaliasing.diff of Package bsd-games (Project openSUSE:Leap:15.0:Update)

--- bsd-games-2.17/hunt/hunt/hunt.c
+++ bsd-games-2.17/hunt/hunt/hunt.c
@@ -383,7 +383,7 @@
 int
 broadcast_vec(s, vector)
 	int			s;		/* socket */
-	struct	sockaddr	**vector;
+	SOCKET			**vector;
 {
 	int			vec_cnt;
 	struct ifaddrs		*ifp, *ip;
@@ -398,7 +398,7 @@
 		    (ip->ifa_flags & IFF_BROADCAST))
 			vec_cnt++;
 
-	*vector = (struct sockaddr *)
+	*vector = (SOCKET *)
 		malloc(vec_cnt * sizeof(struct sockaddr_in));
 	if (*vector == NULL)
 		leave(1, "Out of memory!");
--- bsd-games-2.17/hunt/huntd/hunt.h
+++ bsd-games-2.17/hunt/huntd/hunt.h
@@ -420,7 +420,7 @@
 int		answer(void);
 void		bad_con(void) __attribute__((__noreturn__));
 void		bad_ver(void) __attribute__((__noreturn__));
-int		broadcast_vec(int, struct	sockaddr **);
+int		broadcast_vec(int, SOCKET **);
 void		ce(PLAYER *);
 void		cgoto(PLAYER *, int, int);
 void		check(PLAYER *, int, int);