]> granicus.if.org Git - icinga2/commitdiff
Fix incorrect function name for deprecated functions
authorGunnar Beutner <gunnar.beutner@netways.de>
Fri, 12 Aug 2016 13:41:03 +0000 (15:41 +0200)
committerGunnar Beutner <gunnar.beutner@netways.de>
Fri, 12 Aug 2016 13:41:03 +0000 (15:41 +0200)
refs #12408

lib/base/function.hpp

index 05ce6193cf1f93ca1e273d79491a1f13086236ea..32033c6309a8cefb2fbfd41e3b6a002cb79e1257 100644 (file)
@@ -80,7 +80,7 @@ private:
                void RegisterFunction(void) { \
                        Function::Ptr sf = new icinga::Function(#ns "#" #name, WrapFunction(callback), false); \
                        ScriptGlobal::Set(#ns "." #name, sf); \
-                       Function::Ptr dsf = new icinga::Function("Deprecated#" #name " (deprecated)", WrapFunction(callback), false, true); \
+                       Function::Ptr dsf = new icinga::Function("Deprecated#__" #name " (deprecated)", WrapFunction(callback), false, true); \
                        ScriptGlobal::Set("Deprecated.__" #name, dsf); \
                } \
                INITIALIZE_ONCE_WITH_PRIORITY(RegisterFunction, 10); \