Ignore:
Timestamp:
Nov 13, 2009, 1:41:34 PM (14 years ago)
Author:
mies
Message:

Fixed tons of warnings when using CXXFLAGS="-Wall"!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/ariba/utility/bootstrap/modules/bluetoothsdp/BluetoothSdp.cpp

    r5967 r6919  
    6464namespace utility {
    6565
     66static bdaddr_t bd_addr_any = {{0, 0, 0, 0, 0, 0}};
     67static bdaddr_t bd_addr_local = {{0, 0, 0, 0xff, 0xff, 0xff}};
     68
    6669use_logging_cpp(BluetoothSdp);
    6770OverlayBootstrap* BluetoothSdp::CONNECTION_CHECKER = NULL;
     
    216219        // connect to the local SDP server, register the service record
    217220        if( sdp_session_ == NULL ){
    218                 sdp_session_ = sdp_connect(BDADDR_ANY, BDADDR_LOCAL, SDP_RETRY_IF_BUSY);
     221                sdp_session_ = sdp_connect(&bd_addr_any, &bd_addr_local, SDP_RETRY_IF_BUSY);
    219222        }
    220223
     
    275278
    276279                bdaddr_t address;
    277                 uint8_t channel;
     280//              uint8_t channel;
    278281
    279282                dev_id = hci_get_route(NULL);
     
    339342        char name[256], info1[256], info2[256], info3[256];
    340343
    341         session = sdp_connect(BDADDR_ANY, &target, SDP_RETRY_IF_BUSY);
     344        session = sdp_connect(&bd_addr_any, &target, SDP_RETRY_IF_BUSY);
    342345
    343346        if (session == NULL) {
     
    401404         * Returns a string holding the bt adress in human readable form.
    402405         */
    403         char addr[32] = { 0 };
    404406        char str[32] = { 0 };
    405407        ba2str(ba, str);
Note: See TracChangeset for help on using the changeset viewer.