[Mplayer-cvslog] CVS: main/libmpdemux network.c,1.74,1.75

Bertrand Baudet bertrand at mplayerhq.hu
Thu Apr 10 12:56:01 CEST 2003


Update of /cvsroot/mplayer/main/libmpdemux
In directory mail:/var/tmp.root/cvs-serv15414

Modified Files:
	network.c 
Log Message:
Use inet_ntoa where inet_ntop is not available.


Index: network.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpdemux/network.c,v
retrieving revision 1.74
retrieving revision 1.75
diff -u -r1.74 -r1.75
--- network.c	9 Apr 2003 16:21:42 -0000	1.74
+++ network.c	10 Apr 2003 10:55:18 -0000	1.75
@@ -253,7 +253,11 @@
 			return -2;
 	}
 
-	inet_ntop(af, our_s_addr, buf, 255);			
+#ifdef USE_ATON
+	strncpy( buf, inet_ntoa( *((struct in_addr*)our_s_addr) ), 255);
+#else
+	inet_ntop(af, our_s_addr, buf, 255);
+#endif
 	mp_msg(MSGT_NETWORK,MSGL_STATUS,"Connecting to server %s[%s]:%d ...\n", host, buf , port );
 
 	// Turn the socket as non blocking so we can timeout on the connection



More information about the MPlayer-cvslog mailing list