[cvslog] (2003-05-10 00:29:29 UTC) Module eggdrop1.7: Change committed

cvslog cvs at tsss.org
Fri May 9 18:29:29 CST 2003


CVSROOT    : /usr/local/cvsroot
Module     : eggdrop1.7
Commit time: 2003-05-10 00:29:29 UTC
Commited by: stdarg <stdarg at techmonkeys.org>

Modified files:
     lib/eggdrop/my_socket.c

Log message:

* Some socket compatibility fixes

---------------------- diff included ----------------------
Index: eggdrop1.7/lib/eggdrop/my_socket.c
diff -u eggdrop1.7/lib/eggdrop/my_socket.c:1.6 eggdrop1.7/lib/eggdrop/my_socket.c:1.7
--- eggdrop1.7/lib/eggdrop/my_socket.c:1.6	Tue Apr  8 21:01:13 2003
+++ eggdrop1.7/lib/eggdrop/my_socket.c	Fri May  9 19:29:18 2003
@@ -2,6 +2,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 #include <string.h>
+#include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <arpa/inet.h>
@@ -281,14 +282,15 @@
 	dots[0] = 0;
 	if (inet_pton(AF_INET6, ip, &buf) <= 0) return(-1);
 	sprintf(dots, "%u.%u.%u.%u.%u.%u.%u.%u.%u.%u.%u.%u.%u.%u.%u.%u",
-		buf.in6_u.u6_addr8[0], buf.in6_u.u6_addr8[1],
-		buf.in6_u.u6_addr8[2], buf.in6_u.u6_addr8[3],
-		buf.in6_u.u6_addr8[4], buf.in6_u.u6_addr8[5],
-		buf.in6_u.u6_addr8[6], buf.in6_u.u6_addr8[7],
-		buf.in6_u.u6_addr8[8], buf.in6_u.u6_addr8[9],
-		buf.in6_u.u6_addr8[10], buf.in6_u.u6_addr8[11],
-		buf.in6_u.u6_addr8[12], buf.in6_u.u6_addr8[13],
-		buf.in6_u.u6_addr8[14], buf.in6_u.u6_addr8[15]
+		buf.s6_addr[0], buf.s6_addr[1],
+		buf.s6_addr[2], buf.s6_addr[3],
+		buf.s6_addr[4], buf.s6_addr[5],
+		buf.s6_addr[6], buf.s6_addr[7],
+		buf.s6_addr[8], buf.s6_addr[9],
+		buf.s6_addr[10], buf.s6_addr[11],
+		buf.s6_addr[12], buf.s6_addr[13],
+		buf.s6_addr[14], buf.s6_addr[15]
 	);
+	return(0);
 #endif
 }
----------------------- End of diff -----------------------


More information about the Changes mailing list