]> git.ipfire.org Git - thirdparty/asterisk.git/commit
test_stasis.c: Misc cleanups.
authorRichard Mudgett <rmudgett@digium.com>
Wed, 26 Feb 2014 23:33:06 +0000 (23:33 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 26 Feb 2014 23:33:06 +0000 (23:33 +0000)
commit312d0122c3ebe6eb790d97ec0dd6422fde3a3d18
tree6e359b3dcf4e5a3afb84ecda84b5247b03e57cfd
parent33d60bed468ead3fb325ac196dfb89485eda0dd5
test_stasis.c: Misc cleanups.

* Make the consumer ao2 object use the ao2 lock instead of a redundant
lock in the struct for ast_cond_wait().

* Fixed some curly brace placements.

* Fixed use of malloc(0).  malloc(0) has variant behavior.  It is up to
the implementation to determine if it returns NULL or a valid pointer that
can be later passed to free().

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/12@408983 65c4cc65-6c06-0410-ace0-fbb531ad65f3
tests/test_stasis.c