Browse Source

[master] Fixed a build failure on sunstudio

Small fix, skipping review
Jelte Jansen 14 years ago
parent
commit
9cf25c8292
2 changed files with 2 additions and 3 deletions
  1. 1 1
      src/lib/resolve/resolve.cc
  2. 1 2
      src/lib/resolve/resolve.h

+ 1 - 1
src/lib/resolve/resolve.cc

@@ -35,7 +35,7 @@ namespace resolve {
 
 void
 makeErrorMessage(MessagePtr answer_message,
-                 const Rcode::Rcode& error_code)
+                 const Rcode& error_code)
 {
     answer_message->clearSection(Message::SECTION_ANSWER);
     answer_message->clearSection(Message::SECTION_AUTHORITY);

+ 1 - 2
src/lib/resolve/resolve.h

@@ -38,8 +38,7 @@ namespace resolve {
 /// \param question The question to add to the
 /// \param error_code The error Rcode
 void makeErrorMessage(isc::dns::MessagePtr answer_message,
-                      const isc::dns::Rcode::Rcode& error_code);
-
+                      const isc::dns::Rcode& error_code);
 
 /// \brief Copies the parts relevant for a DNS response to the
 /// target message