summaryrefslogtreecommitdiff
path: root/main/parking.c
diff options
context:
space:
mode:
authorRichard Mudgett <rmudgett@digium.com>2013-09-06 19:26:48 +0000
committerRichard Mudgett <rmudgett@digium.com>2013-09-06 19:26:48 +0000
commitf5ae5e27c83e7ada24d9c523fc4271a6e4ee9ef3 (patch)
treeaf7601283b0db1e0e4831e9d86f02e7ef685de17 /main/parking.c
parent53dbe10f5c46c7c6b7899f25af356b19ecd66416 (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/parking.c')
-rw-r--r--main/parking.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/parking.c b/main/parking.c
index 9a92e6e15..f4ed27d61 100644
--- a/main/parking.c
+++ b/main/parking.c
@@ -216,7 +216,7 @@ int ast_parking_register_bridge_features(struct ast_parking_bridge_feature_fn_ta
}
*wrapper = *fn_table;
- ao2_global_obj_replace(parking_provider, wrapper);
+ ao2_global_obj_replace_unref(parking_provider, wrapper);
return 0;
}
@@ -234,7 +234,7 @@ int ast_parking_unregister_bridge_features(const char *module_name)
return -1;
}
- ao2_global_obj_replace_unref(parking_provider, NULL);
+ ao2_global_obj_release(parking_provider);
return 0;
}