Changeset 1650:432469c37b16 in roaraudio for libroar/vio_socket.c
- Timestamp:
- 05/05/09 15:19:20 (15 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libroar/vio_socket.c
r1616 r1650 189 189 int port; 190 190 #endif 191 #if defined(ROAR_HAVE_IPV4) 192 int ret; 193 #endif 191 194 192 195 if ( def == NULL ) … … 281 284 return -1; 282 285 283 return roar_vio_socket_init_inet4_def(def, host, port, type); 286 ret = roar_vio_socket_init_inet4_def(def, host, port, type); 287 288 *(dstr-1) = ':'; 289 290 return ret; 284 291 } else { 285 292 if ( roar_vio_socket_conv_def(odef, AF_INET) == -1 ) … … 539 546 #if defined(ROAR_HAVE_IPV4) && defined(_CAN_OPERATE) 540 547 struct hostent * he; 541 char * ed ;548 char * ed, * pd; 542 549 543 550 if ( def == NULL ) … … 549 556 if ( (ed = strstr(def->d.socket.host, "/")) != NULL ) 550 557 *ed = 0; 558 559 if ( (pd = strstr(def->d.socket.host, ":")) != NULL ) 560 *pd = 0; 551 561 552 562 if ( (he = gethostbyname(def->d.socket.host)) == NULL ) { … … 557 567 } 558 568 569 if ( pd != NULL ) *pd = ':'; 570 559 571 if ( ed != NULL ) *ed = '/'; 560 572
Note: See TracChangeset
for help on using the changeset viewer.