BIND 10 master, updated. 5b68f13805548425c66ce562688933f99700ed9b [master] added missing include file for strncmp() and std:: qualifier for it.
BIND 10 source code commits
bind10-changes at lists.isc.org
Fri May 11 19:32:04 UTC 2012
The branch, master has been updated
via 5b68f13805548425c66ce562688933f99700ed9b (commit)
from e304c3e5e99d52252921370306d05c64d3a19a86 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 5b68f13805548425c66ce562688933f99700ed9b
Author: JINMEI Tatuya <jinmei at isc.org>
Date: Fri May 11 19:30:33 2012 +0000
[master] added missing include file for strncmp() and std:: qualifier for it.
apparently it didn't cause an error before as a side effect of including some
other header file. due to a slight change to buffer.h we now need to do it
explicitly here (which is a good practice anyway).
committing it at my discretion.
-----------------------------------------------------------------------
Summary of changes:
src/lib/dns/labelsequence.cc | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
-----------------------------------------------------------------------
diff --git a/src/lib/dns/labelsequence.cc b/src/lib/dns/labelsequence.cc
index 0ec450f..71e0f82 100644
--- a/src/lib/dns/labelsequence.cc
+++ b/src/lib/dns/labelsequence.cc
@@ -18,6 +18,8 @@
#include <boost/functional/hash.hpp>
+#include <cstring>
+
namespace isc {
namespace dns {
@@ -52,7 +54,7 @@ LabelSequence::equals(const LabelSequence& other, bool case_sensitive) const {
return (false);
}
if (case_sensitive) {
- return (strncmp(data, other_data, len) == 0);
+ return (std::strncmp(data, other_data, len) == 0);
}
// As long as the data was originally validated as (part of) a name,
More information about the bind10-changes
mailing list