(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:
Jordan Lee
2011-03-25 05:34:26 +00:00
parent 1304aa0079
commit 1b825079be
18 changed files with 122 additions and 117 deletions

View File

@@ -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