1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-04 05:22:40 +00:00

rename tr_httpParseUrl() -> tr_httpParseURL()

This commit is contained in:
Charles Kerr 2008-03-24 19:29:25 +00:00
parent c9d7d38ecd
commit 39a7583f82
4 changed files with 5 additions and 5 deletions

View file

@ -380,7 +380,7 @@ tr_realMakeMetaInfo ( tr_metainfo_builder * builder )
val = tr_bencDictAdd( &top, "announce" );
tr_bencInitStrDup( val, builder->announce );
if( tr_httpParseUrl( builder->announce, -1, NULL, NULL, NULL ) )
if( tr_httpParseURL( builder->announce, -1, NULL, NULL, NULL ) )
{
builder->result = TR_MAKEMETA_URL;
}

View file

@ -477,7 +477,7 @@ static int getannounce( tr_info * inf, tr_benc * meta )
while( isspace( *pch ) )
++pch;
if( tr_httpParseUrl( pch, -1, &address, &port, &announce ) )
if( tr_httpParseURL( pch, -1, &address, &port, &announce ) )
{
tr_err( _( "Invalid announce URL \"%s\"" ), val->val.s.s );
return TR_EINVALID;
@ -550,7 +550,7 @@ tr_trackerInfoInit( tr_tracker_info * info,
const char * address,
int address_len )
{
int ret = tr_httpParseUrl( address, address_len,
int ret = tr_httpParseURL( address, address_len,
&info->address,
&info->port,
&info->announce );

View file

@ -981,7 +981,7 @@ tr_sha1_to_hex( char * out, const uint8_t * sha1 )
***/
int
tr_httpParseUrl( const char * url_in, int len,
tr_httpParseURL( const char * url_in, int len,
char ** setme_host,
int * setme_port,
char ** setme_path )

View file

@ -163,7 +163,7 @@ int tr_compareUint32( uint32_t a, uint32_t b );
void tr_sha1_to_hex( char * out, const uint8_t * sha1 );
int tr_httpParseUrl( const char * url,
int tr_httpParseURL( const char * url,
int url_len,
char ** setme_host,
int * setme_port,