diff options
author | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-01-11 16:41:44 +0000 |
---|---|---|
committer | seanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-01-11 16:41:44 +0000 |
commit | 5943d0abab253605d39155b21e59ebb006c3581a (patch) | |
tree | 90afc2b66dac5a6c03a8bf4b83d365701da24602 /res/res_clialiases.c | |
parent | 62fe2d93d1952f6a2837cb4dc382db8e26fe6221 (diff) |
Pass NULL for the ao2_callback function pointer instead of duplicating cb_true.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@239114 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res/res_clialiases.c')
-rw-r--r-- | res/res_clialiases.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/res/res_clialiases.c b/res/res_clialiases.c index 853735ba3..14d064a1a 100644 --- a/res/res_clialiases.c +++ b/res/res_clialiases.c @@ -168,12 +168,6 @@ static struct ast_cli_entry cli_alias[] = { AST_CLI_DEFINE(alias_show, "Show CLI command aliases"), }; -/*! \brief Function called to to see if an alias is marked for destruction, they always are! */ -static int alias_marked(void *obj, void *arg, int flags) -{ - return CMP_MATCH; -} - /*! \brief Function called to load or reload the configuration file */ static void load_config(int reload) { @@ -191,7 +185,7 @@ static void load_config(int reload) /* Destroy any existing CLI aliases */ if (reload) { - ao2_callback(cli_aliases, OBJ_UNLINK | OBJ_NODATA | OBJ_MULTIPLE , alias_marked, NULL); + ao2_callback(cli_aliases, OBJ_UNLINK | OBJ_NODATA | OBJ_MULTIPLE, NULL, NULL); } for (v = ast_variable_browse(cfg, "general"); v; v = v->next) { |