diff options
author | erdgeist <> | 2008-10-17 15:21:11 +0000 |
---|---|---|
committer | erdgeist <> | 2008-10-17 15:21:11 +0000 |
commit | f4283be67732c2edce701762d871cf7b8495dd4a (patch) | |
tree | d54c3b6f68f3d00dfceda7367cccf7d76787eb5a /opentracker.c | |
parent | 0deb06d5442d4d65cf4251428d5977396cfbf023 (diff) |
Fix debug output for addresses >127
Diffstat (limited to 'opentracker.c')
-rw-r--r-- | opentracker.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/opentracker.c b/opentracker.c index 2a746cf..fa63378 100644 --- a/opentracker.c +++ b/opentracker.c | |||
@@ -237,7 +237,8 @@ static int64_t ot_try_bind( char ip[4], uint16_t port, PROTO_FLAG proto ) { | |||
237 | 237 | ||
238 | #ifdef _DEBUG | 238 | #ifdef _DEBUG |
239 | char *protos[] = {"TCP","UDP","UDP mcast"}; | 239 | char *protos[] = {"TCP","UDP","UDP mcast"}; |
240 | fprintf( stderr, "Binding socket type %s to address %d.%d.%d.%d:%d...", protos[proto],(int)ip[0],(int)ip[1],(int)ip[2],(int)ip[3],port); | 240 | uint8_t *_ip = (uint8_t *)ip; |
241 | fprintf( stderr, "Binding socket type %s to address %d.%d.%d.%d:%d...", protos[proto],_ip[0],_ip[1],_ip[2],_ip[3],port); | ||
241 | #endif | 242 | #endif |
242 | 243 | ||
243 | if( socket_bind4_reuse( s, ip, port ) == -1 ) | 244 | if( socket_bind4_reuse( s, ip, port ) == -1 ) |