From: Gunnar Beutner Date: Fri, 12 Aug 2016 13:41:03 +0000 (+0200) Subject: Fix incorrect function name for deprecated functions X-Git-Tag: v2.5.0~70 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=91577713fd30d67cfadb40d9213f12cf2f87b4c0;p=icinga2 Fix incorrect function name for deprecated functions refs #12408 --- diff --git a/lib/base/function.hpp b/lib/base/function.hpp index 05ce6193c..32033c630 100644 --- a/lib/base/function.hpp +++ b/lib/base/function.hpp @@ -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); \