[asterisk-commits] kpfleming: trunk r85196 - in /trunk: ./ include/asterisk/frame.h

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Oct 10 01:41:51 CDT 2007


Author: kpfleming
Date: Wed Oct 10 01:41:51 2007
New Revision: 85196

URL: http://svn.digium.com/view/asterisk?view=rev&rev=85196
Log:
Merged revisions 85195 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r85195 | kpfleming | 2007-10-10 08:24:41 +0200 (Wed, 10 Oct 2007) | 2 lines

use a macro instead of an inline function, so that backtraces will report the caller of ast_frame_free() properly

........

Modified:
    trunk/   (props changed)
    trunk/include/asterisk/frame.h

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/include/asterisk/frame.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/frame.h?view=diff&rev=85196&r1=85195&r2=85196
==============================================================================
--- trunk/include/asterisk/frame.h (original)
+++ trunk/include/asterisk/frame.h Wed Oct 10 01:41:51 2007
@@ -393,10 +393,7 @@
  */
 void ast_frame_free(struct ast_frame *fr, int cache);
 
-static void force_inline ast_frfree(struct ast_frame *fr)
-{
-	ast_frame_free(fr, 1);
-}
+#define ast_frfree(fr) ast_frame_free(fr, 1)
 
 /*! \brief Makes a frame independent of any static storage
  * \param fr frame to act upon




More information about the asterisk-commits mailing list