[svn] commit: r374 - in /branches/jinmei-dnsmessageapi/src/lib/dns/cpp: buffer.h name.cc

BIND 10 source code commits bind10-changes at lists.isc.org
Wed Dec 16 07:41:02 UTC 2009


Author: jinmei
Date: Wed Dec 16 07:41:01 2009
New Revision: 374

Log:
suppressed compiler warnings

Modified:
    branches/jinmei-dnsmessageapi/src/lib/dns/cpp/buffer.h
    branches/jinmei-dnsmessageapi/src/lib/dns/cpp/name.cc

Modified: branches/jinmei-dnsmessageapi/src/lib/dns/cpp/buffer.h
==============================================================================
--- branches/jinmei-dnsmessageapi/src/lib/dns/cpp/buffer.h (original)
+++ branches/jinmei-dnsmessageapi/src/lib/dns/cpp/buffer.h Wed Dec 16 07:41:01 2009
@@ -94,7 +94,7 @@
     /// \param data A pointer to the data stored in the buffer.
     /// \param len The length of the data in bytes.
     InputBuffer(const void* data, size_t len) :
-        position_(0), len_(len), data_(static_cast<const uint8_t*>(data)) {}
+        position_(0), data_(static_cast<const uint8_t*>(data)), len_(len) {}
     //@}
 
     ///

Modified: branches/jinmei-dnsmessageapi/src/lib/dns/cpp/name.cc
==============================================================================
--- branches/jinmei-dnsmessageapi/src/lib/dns/cpp/name.cc (original)
+++ branches/jinmei-dnsmessageapi/src/lib/dns/cpp/name.cc Wed Dec 16 07:41:01 2009
@@ -107,7 +107,7 @@
     // syntax.  If this ever happens next time, we should consider refactor
     // the code, rather than adding more states and cases below.
     while (ndata.size() < Name::MAX_WIRE && s != send && !done) {
-        char c = *s++;
+        unsigned char c = *s++;
 
         switch (state) {
         case ft_init:




More information about the bind10-changes mailing list