Ignore:
Timestamp:
Apr 22, 2006, 5:12:59 PM (16 years ago)
Author:
titer
Message:

Code cleanup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/net.c

    r218 r236  
    167167int tr_netResolve( char * address, struct in_addr * addr )
    168168{
    169     tr_resolve_t * r = tr_netResolveInit( address );
    170     int ret;
    171 
    172     for( ;; )
    173     {
    174         ret = tr_netResolvePulse( r, addr );
    175         if( ret != TR_RESOLVE_WAIT )
    176         {
    177             break;
    178         }
    179         tr_wait( 20 );
    180     }
    181 
    182     tr_netResolveClose( r );
    183     return ( ret != TR_RESOLVE_OK );
     169    addr->s_addr = inet_addr( address );
     170    return ( addr->s_addr == 0xFFFFFFFF );
    184171}
    185172
Note: See TracChangeset for help on using the changeset viewer.