[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
- Previous message: [Mplayer-cvslog] CVS: main/libmpdemux vcd_read_fbsd.h,1.6,1.7
- Next message: [Mplayer-cvslog] CVS: main/libmpdemux stream_null.c,NONE,1.1 Makefile,1.57,1.58 stream.c,1.62,1.63 open.c,1.78,1.79
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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
- Previous message: [Mplayer-cvslog] CVS: main/libmpdemux vcd_read_fbsd.h,1.6,1.7
- Next message: [Mplayer-cvslog] CVS: main/libmpdemux stream_null.c,NONE,1.1 Makefile,1.57,1.58 stream.c,1.62,1.63 open.c,1.78,1.79
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list