diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-04-29 08:51:21 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-04-29 08:51:21 +0000 |
commit | 336c0408ef5d817f0053864ede5e6e98ac6535d3 (patch) | |
tree | 818acc07b51ab0a68ebaf345d380fbe8a8568eed /main/rtp_engine.c | |
parent | 68a566a8611dda98662758cb35c4fea95e4dc067 (diff) |
Resolve Solaris build issues and add some API documentation.
(issue #14981)
Reported by: snuffy
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@190989 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/rtp_engine.c')
-rw-r--r-- | main/rtp_engine.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/main/rtp_engine.c b/main/rtp_engine.c index 89f9a595c..ac0885a10 100644 --- a/main/rtp_engine.c +++ b/main/rtp_engine.c @@ -1540,7 +1540,8 @@ int ast_rtp_instance_make_compatible(struct ast_channel *chan, struct ast_rtp_in if (!peer_instance || peer_instance->engine != instance->engine) { ast_channel_unlock(peer); - peer_instance = (ao2_ref(peer_instance, -1), NULL); + ao2_ref(peer_instance, -1); + peer_instance = NULL; return -1; } @@ -1548,7 +1549,8 @@ int ast_rtp_instance_make_compatible(struct ast_channel *chan, struct ast_rtp_in ast_channel_unlock(peer); - peer_instance = (ao2_ref(peer_instance, -1), NULL); + ao2_ref(peer_instance, -1); + peer_instance = NULL; return res; } |