comparison tcp.c @ 683:095009fc2f35 libavformat

kill warnings patch by (Mns Rullgrd <mru inprovide com>)
author michael
date Thu, 24 Feb 2005 19:08:50 +0000
parents 056991ab9f10
children 1fc7b1637f90
comparison
equal deleted inserted replaced
682:decfffe703bc 683:095009fc2f35
55 static int tcp_open(URLContext *h, const char *uri, int flags) 55 static int tcp_open(URLContext *h, const char *uri, int flags)
56 { 56 {
57 struct sockaddr_in dest_addr; 57 struct sockaddr_in dest_addr;
58 char hostname[1024], *q; 58 char hostname[1024], *q;
59 int port, fd = -1; 59 int port, fd = -1;
60 TCPContext *s; 60 TCPContext *s = NULL;
61 const char *p;
62 fd_set wfds; 61 fd_set wfds;
63 int fd_max, ret; 62 int fd_max, ret;
64 struct timeval tv; 63 struct timeval tv;
65 socklen_t optlen; 64 socklen_t optlen;
66 char proto[1024],path[1024],tmp[1024]; // PETR: protocol and path strings 65 char proto[1024],path[1024],tmp[1024]; // PETR: protocol and path strings