Ignore:
Timestamp:
Aug 18, 2006, 8:46:19 AM (17 years ago)
Author:
joshe
Message:

Unbreak BeOS build.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/net.c

    r261 r791  
    404404#endif
    405405}
     406
     407void tr_netNtop( const struct in_addr * addr, char * buf, int len )
     408{
     409    const uint8_t * cast;
     410
     411    cast = (const uint8_t *)addr;
     412    snprintf( buf, len, "%hhu.%hhu.%hhu.%hhu",
     413              cast[0], cast[1], cast[2], cast[3] );
     414}
Note: See TracChangeset for help on using the changeset viewer.