comparison tcp.c @ 5775:7a123cc24a81 libavformat

Rename url_split to ff_url_split Since this function isn't in the public API, it should have an ff_ prefix.
author mstorsjo
date Mon, 08 Mar 2010 09:03:25 +0000
parents b1a108ca71c5
children d605f589f0be
comparison
equal deleted inserted replaced
5774:66e85b4ca68a 5775:7a123cc24a81
42 struct timeval tv; 42 struct timeval tv;
43 socklen_t optlen; 43 socklen_t optlen;
44 char hostname[1024],proto[1024],path[1024]; 44 char hostname[1024],proto[1024],path[1024];
45 char portstr[10]; 45 char portstr[10];
46 46
47 url_split(proto, sizeof(proto), NULL, 0, hostname, sizeof(hostname), 47 ff_url_split(proto, sizeof(proto), NULL, 0, hostname, sizeof(hostname),
48 &port, path, sizeof(path), uri); 48 &port, path, sizeof(path), uri);
49 if (strcmp(proto,"tcp") || port <= 0 || port >= 65536) 49 if (strcmp(proto,"tcp") || port <= 0 || port >= 65536)
50 return AVERROR(EINVAL); 50 return AVERROR(EINVAL);
51 51
52 memset(&hints, 0, sizeof(hints)); 52 memset(&hints, 0, sizeof(hints));