#include "ednsextendederror.hh"
#include "views.hh"
-static bool getEDNSExtendedErrorOptFromString(const pdns_string_view option, EDNSExtendedError& eee)
+static bool getEDNSExtendedErrorOptFromStringView(const pdns_string_view& option, EDNSExtendedError& eee)
{
if (option.size() < sizeof(uint16_t)) {
return false;
bool getEDNSExtendedErrorOptFromString(const string& option, EDNSExtendedError& eee)
{
- return getEDNSExtendedErrorOptFromString(pdns_string_view(option), eee);
+ return getEDNSExtendedErrorOptFromStringView(pdns_string_view(option), eee);
}
bool getEDNSExtendedErrorOptFromString(const char* option, unsigned int len, EDNSExtendedError& eee)
{
- return getEDNSExtendedErrorOptFromString(pdns_string_view(option, len), eee);
+ return getEDNSExtendedErrorOptFromStringView(pdns_string_view(option, len), eee);
}
string makeEDNSExtendedErrorOptString(const EDNSExtendedError& eee)