[asterisk-commits] kpfleming: branch 1.4 r85195 - /branches/1.4/include/asterisk/frame.h

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


Author: kpfleming
Date: Wed Oct 10 01:24:41 2007
New Revision: 85195

URL: http://svn.digium.com/view/asterisk?view=rev&rev=85195
Log:
use a macro instead of an inline function, so that backtraces will report the caller of ast_frame_free() properly

Modified:
    branches/1.4/include/asterisk/frame.h

Modified: branches/1.4/include/asterisk/frame.h
URL: http://svn.digium.com/view/asterisk/branches/1.4/include/asterisk/frame.h?view=diff&rev=85195&r1=85194&r2=85195
==============================================================================
--- branches/1.4/include/asterisk/frame.h (original)
+++ branches/1.4/include/asterisk/frame.h Wed Oct 10 01:24:41 2007
@@ -385,10 +385,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