]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2565] Rename function argument
authorMukund Sivaraman <muks@isc.org>
Thu, 27 Dec 2012 11:25:08 +0000 (16:55 +0530)
committerMukund Sivaraman <muks@isc.org>
Thu, 27 Dec 2012 11:40:28 +0000 (17:10 +0530)
src/lib/dns/rrparamregistry-placeholder.cc

index 9729d86eeea2274615818c254df163790559faa6..487daa5d79973e58d580b2ae6006603c38644e97 100644 (file)
@@ -423,12 +423,12 @@ removeParam(uint16_t code, MC& codemap, MS& stringmap) {
 
 template <typename PT, typename MS>
 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;
 
     found = stringmap.find(code_str);
     if (found != stringmap.end()) {
-        class_code = found->second->code_;
+        ret_code = found->second->code_;
         return (true);
     }
 
@@ -442,7 +442,7 @@ textToCode(const string& code_str, MS& stringmap, uint16_t& class_code) {
                                           l - PT::UNKNOWN_PREFIXLEN()));
         iss >> dec >> code;
         if (iss.rdstate() == ios::eofbit && code <= PT::MAX_CODE) {
-            class_code = code;
+            ret_code = code;
             return (true);
         }
     }