VirtualBox

Ignore:
Timestamp:
Aug 10, 2016 1:21:48 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
109898
Message:

NetworkServices: warnings

Location:
trunk/src/VBox/NetworkServices/DHCP
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/DHCP/Config.h

    r62481 r63266  
    4040    RawOption()
    4141    {
     42        /** @todo r=bird: this is crazy. */
    4243        RT_ZERO(*this);
    4344    }
  • trunk/src/VBox/NetworkServices/DHCP/NetworkManagerDhcp.cpp

    r62481 r63266  
    6767
    6868    int rc = ConfigurationManager::extractRequestList(pDhcpMsg, cb, opt);
     69    NOREF(rc); /** @todo check */
    6970
    7071    /* 3. Send of offer */
     
    7576    offer4Client(client, pDhcpMsg->bp_xid, opt.au8RawOpt, opt.cbRawOpt);
    7677
    77     return VINF_SUCCESS;
     78    return true;
    7879}
    7980
     
    107108            return true;
    108109        }
    109         else {
    110             /* XXX: Validate request */
    111             RawOption opt;
    112             RT_ZERO(opt);
     110        /* XXX: Validate request */
     111        RawOption opt;
     112        RT_ZERO(opt);
    113113
    114             Client c(client);
    115             int rc = confManager->commitLease4Client(c);
    116             AssertRCReturn(rc, false);
     114        Client c(client);
     115        int rc = confManager->commitLease4Client(c);
     116        AssertRCReturn(rc, false);
    117117
    118             rc = ConfigurationManager::extractRequestList(pDhcpMsg, cb, opt);
    119             AssertRCReturn(rc, false);
     118        rc = ConfigurationManager::extractRequestList(pDhcpMsg, cb, opt);
     119        AssertRCReturn(rc, false);
    120120
    121             ack(client, pDhcpMsg->bp_xid, opt.au8RawOpt, opt.cbRawOpt);
    122         }
     121        ack(client, pDhcpMsg->bp_xid, opt.au8RawOpt, opt.cbRawOpt);
    123122    }
    124123    else
  • trunk/src/VBox/NetworkServices/DHCP/VBoxNetDHCP.cpp

    r62679 r63266  
    5555#include <VBox/version.h>
    5656
    57 
    5857#include "../NetLib/VBoxNetLib.h"
    5958#include "../NetLib/shared_ptr.h"
     
    345344 * Handles a DHCP message.
    346345 *
    347  * @returns true if handled, false if not.
     346 * @returns true if handled, false if not.  (IGNORED BY CALLER)
    348347 * @param   uMsgType        The message type.
    349348 * @param   pDhcpMsg        The DHCP message.
     
    611610HRESULT VBoxNetDhcp::HandleEvent(VBoxEventType_T aEventType, IEvent *pEvent)
    612611{
    613     switch(aEventType)
     612    switch (aEventType)
    614613    {
    615614        case VBoxEventType_OnHostNameResolutionConfigurationChange:
     
    640639            break;
    641640        }
     641
     642        default: break; /* Shut up MSC. */
    642643    }
    643644
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette