From: Francis Dupont Date: Fri, 6 Oct 2017 22:10:37 +0000 (+0200) Subject: [master] Moved to a plain if in getOptionCode() X-Git-Tag: trac5382_base~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b88abffe3c1bde3159830b225393e04fad712bd;p=thirdparty%2Fkea.git [master] Moved to a plain if in getOptionCode() --- diff --git a/src/lib/dhcp/option_vendor_class.h b/src/lib/dhcp/option_vendor_class.h index e4a8664837..a3143547db 100644 --- a/src/lib/dhcp/option_vendor_class.h +++ b/src/lib/dhcp/option_vendor_class.h @@ -156,7 +156,11 @@ private: /// @param u universe (V4 or V6). /// @return DHCPv4 V-I Vendor Class or DHCPv6 Vendor Class option code. static uint16_t getOptionCode(Option::Universe u) { - return (u == V4 ? DHO_VIVCO_SUBOPTIONS : D6O_VENDOR_CLASS); + if (u == V4} { + return (DHO_VIVCO_SUBOPTIONS); + } else { + return (D6O_VENDOR_CLASS); + } } /// @brief Returns the tuple length field type for the given universe.