(trunk libT) very minor tweak: tr_httpIsValidURL() should return a tr_bool, not an int.

This commit is contained in:
Charles Kerr
2009-08-12 19:44:32 +00:00
parent bf1a544939
commit 306d26a97c
2 changed files with 4 additions and 4 deletions

View File

@@ -923,10 +923,10 @@ tr_sha1_to_hex( char * out,
****
***/
int
tr_bool
tr_httpIsValidURL( const char * url )
{
const char * c;
const char * c;
static const char * rfc2396_valid_chars =
"abcdefghijklmnopqrstuvwxyz" /* lowalpha */
"ABCDEFGHIJKLMNOPQRSTUVWXYZ" /* upalpha */
@@ -943,7 +943,7 @@ tr_httpIsValidURL( const char * url )
if( !strchr( rfc2396_valid_chars, *c ) )
return FALSE;
return !tr_httpParseURL( url, -1, NULL, NULL, NULL );
return tr_httpParseURL( url, -1, NULL, NULL, NULL ) == 0;
}
int