From bb86485decc082c4c34af2c5b62fcc36eaab7b4f Mon Sep 17 00:00:00 2001 From: bert hubert Date: Thu, 8 Jan 2015 14:48:46 +0100 Subject: [PATCH] const correctness in addCMsgSrcAddr --- pdns/misc.cc | 2 +- pdns/misc.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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); -- 2.47.2