]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[5150a] Changed module by app_name as it can be reserved on some C++ extensions
authorFrancis Dupont <fdupont@isc.org>
Tue, 21 Mar 2017 19:08:02 +0000 (20:08 +0100)
committerFrancis Dupont <fdupont@isc.org>
Tue, 21 Mar 2017 19:08:02 +0000 (20:08 +0100)
src/lib/process/d_controller.cc

index 3f8c97d4d463532c02fe3bb196ede3553e667472..5f64064e1fdcd397061e0c86027ef99dfd459017 100644 (file)
@@ -491,7 +491,7 @@ ConstElementPtr
 DControllerBase::configTestHandler(const std::string&, ConstElementPtr args) {
     const int status_code = COMMAND_ERROR; // 1 indicates an error
     ConstElementPtr module_config;
-    std::string module = getAppName();
+    std::string app_name = getAppName();
     std::string message;
 
     // Command arguments are expected to be:
@@ -501,11 +501,11 @@ DControllerBase::configTestHandler(const std::string&, ConstElementPtr args) {
     if (!args) {
         message = "Missing mandatory 'arguments' parameter.";
     } else {
-      module_config = args->get(module);
+      module_config = args->get(app_name);
         if (!module_config) {
-            message = "Missing mandatory '" + module + "' parameter.";
+            message = "Missing mandatory '" + app_name + "' parameter.";
         } else if (module_config->getType() != Element::map) {
-            message = "'" + module + "' parameter expected to be a map.";
+            message = "'" + app_name + "' parameter expected to be a map.";
         }
     }