diff options
author | Richard Mudgett <rmudgett@digium.com> | 2013-09-06 19:26:48 +0000 |
---|---|---|
committer | Richard Mudgett <rmudgett@digium.com> | 2013-09-06 19:26:48 +0000 |
commit | f5ae5e27c83e7ada24d9c523fc4271a6e4ee9ef3 (patch) | |
tree | af7601283b0db1e0e4831e9d86f02e7ef685de17 /main/udptl.c | |
parent | 53dbe10f5c46c7c6b7899f25af356b19ecd66416 (diff) |
astobj2: Add warn unused attribute to some functions.
* Fixed resulting warnings with improper use of ao2_global_obj_replace().
* Made a couple uses of ao2_global_obj_replace_unref(x, NULL) into the
equivalent and more appropriate ao2_global_obj_release() call.
........
Merged revisions 398533 from http://svn.asterisk.org/svn/asterisk/branches/12
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@398557 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/udptl.c')
-rw-r--r-- | main/udptl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/udptl.c b/main/udptl.c index 25a4cc02c..fa9171742 100644 --- a/main/udptl.c +++ b/main/udptl.c @@ -1468,7 +1468,7 @@ static void __ast_udptl_reload(int reload) } ast_log(LOG_NOTICE, "Could not load udptl config; using defaults\n"); - ao2_global_obj_replace(globals, udptl_cfg); + ao2_global_obj_replace_unref(globals, udptl_cfg); } } } |