]> granicus.if.org Git - pdns/commitdiff
const correctness in addCMsgSrcAddr
authorbert hubert <bert.hubert@netherlabs.nl>
Thu, 8 Jan 2015 13:48:46 +0000 (14:48 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Thu, 8 Jan 2015 13:48:46 +0000 (14:48 +0100)
pdns/misc.cc
pdns/misc.hh

index 98cd8664330e3cc1c00dcc94dd8db66c9ced55ad..6e0fa7ecf48d946b2aadfe75564225ce8978a28e 100644 (file)
@@ -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;
 
index 3e64d15fd0dc26e1479b4f34052d4fb1f07b5548..019facd1bf6a5f3e4210be93de91cf63835ce9d6 100644 (file)
@@ -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);