VirtualBox

Ignore:
Timestamp:
Apr 6, 2018 12:24:46 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
121800
Message:

NetworkServices/Dhcpd: untabify.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/NetworkServices/Dhcpd/DhcpOptions.h

    r71689 r71703  
    342342    static OptValue *parse(const char *pcszValue)
    343343    {
    344         value_t v;
    345         int rc = DhcpOption::parse1(v, pcszValue);
    346         if (RT_FAILURE(rc))
    347             return NULL;
    348         return new OptValue(v);
     344        value_t v;
     345        int rc = DhcpOption::parse1(v, pcszValue);
     346        if (RT_FAILURE(rc))
     347            return NULL;
     348        return new OptValue(v);
    349349    }
    350350};
     
    432432    static OptString *parse(const char *pcszValue)
    433433    {
    434         return new OptString(pcszValue);
     434        return new OptString(pcszValue);
    435435    }
    436436};
     
    544544    static OptList *parse(const char *pcszValue)
    545545    {
    546         value_t v;
    547         int rc = DhcpOption::parseList(v, pcszValue);
    548         if (RT_FAILURE(rc) || v.empty())
    549             return NULL;
    550         return new OptList(v);
     546        value_t v;
     547        int rc = DhcpOption::parseList(v, pcszValue);
     548        if (RT_FAILURE(rc) || v.empty())
     549            return NULL;
     550        return new OptList(v);
    551551    }
    552552};
     
    587587    {
    588588        octets_t::const_iterator beg(src.begin());
    589         octets_t data(beg, beg + cb);
    590         m_Data.swap(data);
    591 
    592         m_fPresent = true;
    593         return VINF_SUCCESS;
     589        octets_t data(beg, beg + cb);
     590        m_Data.swap(data);
     591
     592        m_fPresent = true;
     593        return VINF_SUCCESS;
    594594    }
    595595
     
    597597    static RawOption *parse(uint8_t aOptCode, const char *pcszValue)
    598598    {
    599         octets_t data;
    600         int rc = DhcpOption::parseHex(data, pcszValue);
    601         if (RT_FAILURE(rc))
    602             return NULL;
    603         return new RawOption(aOptCode, data);
     599        octets_t data;
     600        int rc = DhcpOption::parseHex(data, pcszValue);
     601        if (RT_FAILURE(rc))
     602            return NULL;
     603        return new RawOption(aOptCode, data);
    604604    }
    605605};
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