# HG changeset patch # User rbultje # Date 1219513150 0 # Node ID 4ef51601582d913ba309a980f16d90016461277f # Parent 772eba9f4b30fe68cfd73e2bd19d8df64a66988b Remove useless comments. See "[PATCH] tcp.c/udp.c memleak?" for discussion. diff -r 772eba9f4b30 -r 4ef51601582d tcp.c --- a/tcp.c Sat Aug 23 15:25:38 2008 +0000 +++ b/tcp.c Sat Aug 23 17:39:10 2008 +0000 @@ -39,12 +39,12 @@ int fd_max, ret; struct timeval tv; socklen_t optlen; - char proto[1024],path[1024],tmp[1024]; // PETR: protocol and path strings + char proto[1024],path[1024],tmp[1024]; url_split(proto, sizeof(proto), NULL, 0, hostname, sizeof(hostname), - &port, path, sizeof(path), uri); // PETR: use url_split - if (strcmp(proto,"tcp")) goto fail; // PETR: check protocol - if ((q = strchr(hostname,'@'))) { strcpy(tmp,q+1); strcpy(hostname,tmp); } // PETR: take only the part after '@' for tcp protocol + &port, path, sizeof(path), uri); + if (strcmp(proto,"tcp")) goto fail; + if ((q = strchr(hostname,'@'))) { strcpy(tmp,q+1); strcpy(hostname,tmp); } s = av_malloc(sizeof(TCPContext)); if (!s)