From ae5f28cb51f51186998cf3c6b2dc1d56abe0174e Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Thu, 27 Aug 2015 21:08:40 +0100 Subject: dns_utils: add a const where possible --- src/common/dns_utils.cpp | 2 +- src/common/dns_utils.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/dns_utils.cpp b/src/common/dns_utils.cpp index ce57151f5..d8b3c5308 100644 --- a/src/common/dns_utils.cpp +++ b/src/common/dns_utils.cpp @@ -343,7 +343,7 @@ DNSResolver DNSResolver::create() return DNSResolver(); } -bool DNSResolver::check_address_syntax(const char *addr) +bool DNSResolver::check_address_syntax(const char *addr) const { // if string doesn't contain a dot, we won't consider it a url for now. if (strchr(addr,'.') == NULL) diff --git a/src/common/dns_utils.h b/src/common/dns_utils.h index 50e8001f1..332bceafe 100644 --- a/src/common/dns_utils.h +++ b/src/common/dns_utils.h @@ -137,7 +137,7 @@ private: * * @return true if it looks enough like a URL, false if not */ - bool check_address_syntax(const char *addr); + bool check_address_syntax(const char *addr) const; DNSResolverData *m_data; }; // class DNSResolver -- cgit v1.2.3