comparison libmpdemux/url.c @ 11412:ec3dac7d17a0

Warning fixes (approved by A'rpi).
author rathann
date Sat, 08 Nov 2003 00:26:51 +0000
parents 88c855a174f3
children 827cae571c5c
comparison
equal deleted inserted replaced
11411:cb070e67a9c9 11412:ec3dac7d17a0
41 // extract the protocol 41 // extract the protocol
42 ptr1 = strstr(url, "://"); 42 ptr1 = strstr(url, "://");
43 if( ptr1==NULL ) { 43 if( ptr1==NULL ) {
44 // Check for a special case: "sip:" (without "//"): 44 // Check for a special case: "sip:" (without "//"):
45 if (strstr(url, "sip:") == url) { 45 if (strstr(url, "sip:") == url) {
46 ptr1 = &url[3]; // points to ':' 46 ptr1 = (char *)&url[3]; // points to ':'
47 jumpSize = 1; 47 jumpSize = 1;
48 } else { 48 } else {
49 mp_msg(MSGT_NETWORK,MSGL_V,"Not an URL!\n"); 49 mp_msg(MSGT_NETWORK,MSGL_V,"Not an URL!\n");
50 url_free(Curl); 50 url_free(Curl);
51 return NULL; 51 return NULL;