summaryrefslogtreecommitdiffstats
path: root/src/lib/dns/question.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/dns/question.cc')
-rw-r--r--src/lib/dns/question.cc15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/lib/dns/question.cc b/src/lib/dns/question.cc
index 72499f2355..7659f34ae3 100644
--- a/src/lib/dns/question.cc
+++ b/src/lib/dns/question.cc
@@ -6,19 +6,20 @@
#include <config.h>
-#include <iostream>
-#include <string>
-
-#include <util/buffer.h>
#include <dns/messagerenderer.h>
#include <dns/name.h>
#include <dns/question.h>
#include <dns/rrclass.h>
#include <dns/rrtype.h>
+#include <util/buffer.h>
+
+#include <iostream>
+#include <string>
-using namespace std;
using namespace isc::util;
+using namespace std;
+
namespace isc {
namespace dns {
Question::Question(InputBuffer& buffer) :
@@ -44,7 +45,7 @@ Question::toText(bool newline) const {
return (r);
}
-unsigned int
+uint32_t
Question::toWire(OutputBuffer& buffer) const {
name_.toWire(buffer);
rrtype_.toWire(buffer);
@@ -53,7 +54,7 @@ Question::toWire(OutputBuffer& buffer) const {
return (1);
}
-unsigned int
+uint32_t
Question::toWire(AbstractMessageRenderer& renderer) const {
const size_t pos0 = renderer.getLength();