1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-03-06 11:38:21 +00:00

(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,7 +923,7 @@ tr_sha1_to_hex( char * out,
****
***/
int
tr_bool
tr_httpIsValidURL( const char * url )
{
const char * c;
@ -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

View file

@ -375,7 +375,7 @@ void tr_sha1_to_hex( char * out,
const uint8_t * sha1 );
int tr_httpIsValidURL( const char * url );
tr_bool tr_httpIsValidURL( const char * url );
int tr_httpParseURL( const char * url,
int url_len,