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

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

Location:
source/ariba/utility/bootstrap/modules
Files:
2 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);
  • source/ariba/utility/bootstrap/modules/periodicbroadcast/PeriodicBroadcast.h

    r5973 r6919  
    197197        public:
    198198                udp_server(boost::asio::io_service& io_service, ServiceList* _services, boost::mutex* _servicesmutex)
    199                         : services(_services), servicesmutex(_servicesmutex),
    200                                 socket_v4(io_service), socket_v6(io_service) {
     199                        : socket_v4(io_service), socket_v6(io_service),
     200                          services(_services), servicesmutex(_servicesmutex) {
    201201
    202202                        if( open4() ) start_receive_4();
     
    350350
    351351                                { // insert new found service
    352                                         boost::mutex::scoped_lock( *servicesmutex );
     352                                        boost::mutex::scoped_lock lock( *servicesmutex );
    353353
    354354                                        ServiceList::iterator it = services->find( msg.getName() );
Note: See TracChangeset for help on using the changeset viewer.