From: bert hubert Date: Thu, 8 Jan 2015 13:48:46 +0000 (+0100) Subject: const correctness in addCMsgSrcAddr X-Git-Tag: rec-3.7.0-rc1~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bb86485decc082c4c34af2c5b62fcc36eaab7b4f;p=thirdparty%2Fpdns.git const correctness in addCMsgSrcAddr --- diff --git a/pdns/misc.cc b/pdns/misc.cc index 98cd866433..6e0fa7ecf4 100644 --- a/pdns/misc.cc +++ b/pdns/misc.cc @@ -783,7 +783,7 @@ Regex::Regex(const string &expr) throw PDNSException("Regular expression did not compile"); } -void addCMsgSrcAddr(struct msghdr* msgh, void* cmsgbuf, ComboAddress* source) +void addCMsgSrcAddr(struct msghdr* msgh, void* cmsgbuf, const ComboAddress* source) { struct cmsghdr *cmsg = NULL; diff --git a/pdns/misc.hh b/pdns/misc.hh index 3e64d15fd0..019facd1bf 100644 --- a/pdns/misc.hh +++ b/pdns/misc.hh @@ -538,7 +538,7 @@ private: }; union ComboAddress; -void addCMsgSrcAddr(struct msghdr* msgh, void* cmsgbuf, ComboAddress* source); +void addCMsgSrcAddr(struct msghdr* msgh, void* cmsgbuf, const ComboAddress* source); unsigned int getFilenumLimit(bool hardOrSoft=0); void setFilenumLimit(unsigned int lim);