Changeset 4838 for source/ariba/utility/bootstrap/modules
- Timestamp:
- Jul 9, 2009, 3:05:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
source/ariba/utility/bootstrap/modules/multicastdns/MulticastDns.cpp
r4836 r4838 396 396 case AVAHI_RESOLVER_FOUND: 397 397 398 char addr[AVAHI_ADDRESS_STR_MAX];399 400 avahi_address_snprint(addr, sizeof(addr), address);401 402 398 string info1 = ""; 403 399 string info2 = ""; … … 405 401 406 402 if(txt != NULL){ 407 char* cinfo = avahi_string_list_to_string(txt);408 info1 = cinfo;409 avahi_free(cinfo);403 char* cinfo = (char*)avahi_string_list_get_text(txt); 404 info1 = string(cinfo); 405 txt = avahi_string_list_get_next(txt); 410 406 } 411 407 412 if(txt != NULL && avahi_string_list_get_next(txt) != NULL){413 char* cinfo = avahi_string_list_to_string( avahi_string_list_get_next(txt));414 info2 = cinfo;415 avahi_free(cinfo);408 if(txt != NULL){ 409 char* cinfo = (char*)avahi_string_list_get_text(txt); 410 info2 = string(cinfo); 411 txt = avahi_string_list_get_next(txt); 416 412 } 417 413 418 if(txt != NULL && avahi_string_list_get_next(txt) != NULL){419 char* cinfo = avahi_string_list_to_string( avahi_string_list_get_next(txt));420 info3 = cinfo;421 avahi_free(cinfo);414 if(txt != NULL){ 415 char* cinfo = (char*)avahi_string_list_get_text(txt); 416 info3 = string(cinfo); 417 txt = avahi_string_list_get_next(txt); 422 418 } 423 419
Note:
See TracChangeset
for help on using the changeset viewer.