test_stasis.c: Misc cleanups.
authorRichard Mudgett <rmudgett@digium.com>
Wed, 26 Feb 2014 23:35:20 +0000 (23:35 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Wed, 26 Feb 2014 23:35:20 +0000 (23:35 +0000)
commitf8dd49ab4d1431fc9d1993882ddc256fd24a40fa
tree9b51eb405e486ab7937c21759db7e09832dbf0ba
parent5a46d69543a7a485be624d1a95cf84bb9241ecb6
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().
........

Merged revisions 408983 from http://svn.asterisk.org/svn/asterisk/branches/12

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