Browse Source

[2565] Rename function argument

Mukund Sivaraman 12 years ago
parent
commit
9ab72138d4
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/lib/dns/rrparamregistry-placeholder.cc

+ 3 - 3
src/lib/dns/rrparamregistry-placeholder.cc

@@ -423,12 +423,12 @@ removeParam(uint16_t code, MC& codemap, MS& stringmap) {
 
 
 template <typename PT, typename MS>
 template <typename PT, typename MS>
 inline bool
 inline bool
-textToCode(const string& code_str, MS& stringmap, uint16_t& class_code) {
+textToCode(const string& code_str, MS& stringmap, uint16_t& ret_code) {
     typename MS::const_iterator found;
     typename MS::const_iterator found;
 
 
     found = stringmap.find(code_str);
     found = stringmap.find(code_str);
     if (found != stringmap.end()) {
     if (found != stringmap.end()) {
-        class_code = found->second->code_;
+        ret_code = found->second->code_;
         return (true);
         return (true);
     }
     }
 
 
@@ -442,7 +442,7 @@ textToCode(const string& code_str, MS& stringmap, uint16_t& class_code) {
                                           l - PT::UNKNOWN_PREFIXLEN()));
                                           l - PT::UNKNOWN_PREFIXLEN()));
         iss >> dec >> code;
         iss >> dec >> code;
         if (iss.rdstate() == ios::eofbit && code <= PT::MAX_CODE) {
         if (iss.rdstate() == ios::eofbit && code <= PT::MAX_CODE) {
-            class_code = code;
+            ret_code = code;
             return (true);
             return (true);
         }
         }
     }
     }