mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +00:00
(trunk libT) API cleanup of the tr_address functions to make them more consistent.
This is loosely related to #2910, but only in the sense of laying the groundwork for #2910's fix...
This commit is contained in:
@@ -998,10 +998,10 @@ tr_urlIsValid( const char * url, int url_len )
|
||||
}
|
||||
|
||||
bool
|
||||
tr_addressIsIP( const char * address )
|
||||
tr_addressIsIP( const char * str )
|
||||
{
|
||||
tr_address tempAddr;
|
||||
return tr_pton(address, &tempAddr) != NULL;
|
||||
tr_address tmp;
|
||||
return tr_address_from_string( &tmp, str );
|
||||
}
|
||||
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user