VirtualBox

Ignore:
Timestamp:
Jul 4, 2019 8:01:58 AM (6 years ago)
Author:
vboxsync
Message:

Dhcpd: Eliminated use of std::string (probably my mistake in the original code). Various other cleanups. bugref:9288

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/Dhcpd/Db.cpp

    r79509 r79514  
    223223Binding *Binding::fromXML(const xml::ElementNode *ndLease)
    224224{
    225     int rc;
    226 
    227225    /* Lease/@network seems to always have bogus value, ignore it. */
    228226
     
    236234
    237235    RTMAC mac;
    238     rc = RTNetStrToMacAddr(strMac.c_str(), &mac);
     236    int rc = RTNetStrToMacAddr(strMac.c_str(), &mac);
    239237    if (RT_FAILURE(rc))
    240238        return NULL;
     
    640638
    641639
    642 int Db::writeLeases(const std::string &strFileName) const
     640int Db::writeLeases(const RTCString &strFileName) const
    643641{
    644642    LogDHCP(("writing leases to %s\n", strFileName.c_str()));
     
    684682
    685683
    686 int Db::loadLeases(const std::string &strFileName)
     684int Db::loadLeases(const RTCString &strFileName)
    687685{
    688686    LogDHCP(("loading leases from %s\n", strFileName.c_str()));
Note: See TracChangeset for help on using the changeset viewer.

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