various cleanups, including ...
authorRussell Bryant <russell@russellbryant.com>
Mon, 21 Aug 2006 19:18:09 +0000 (19:18 +0000)
committerRussell Bryant <russell@russellbryant.com>
Mon, 21 Aug 2006 19:18:09 +0000 (19:18 +0000)
commit5d3869a1c8b49a25fa2652e3a5791eec5368af9f
treefdbf75a69b1e0f840f1c2d4d411bb9d0c4808344
parentd030102eedc655ce5dd578300180e9aecbc6573d
various cleanups, including ...
- Create an astmm_log() macro that logs the same message to both stderr as well
  as the mmlog file if it is open instead of duplicating the code everywhere.
- Use for loops for list traversals instead of while loops
- reduce nesting
- ensure locking isn't put around more than is necessary
- localize a struct definition
- change the limit of the path to the mmlog to PATH_MAX instead of 80

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@40780 65c4cc65-6c06-0410-ace0-fbb531ad65f3
main/astmm.c