aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-10 06:24:41 +0000
committerkpfleming <kpfleming@f38db490-d61c-443f-a65b-d21fe96a405b>2007-10-10 06:24:41 +0000
commit7b04f3744a3387502319b093f0a9efc58c1b01a4 (patch)
tree6cda1d052178f0455adb223bff9f856848efcc98
parenta8e66dc137a198d1d429c2129ef630bee848a820 (diff)
use a macro instead of an inline function, so that backtraces will report the caller of ast_frame_free() properly
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@85195 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--include/asterisk/frame.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/include/asterisk/frame.h b/include/asterisk/frame.h
index cc3aa5d83..103a00058 100644
--- a/include/asterisk/frame.h
+++ b/include/asterisk/frame.h
@@ -385,10 +385,7 @@ struct ast_frame *ast_fralloc(char *source, int len);
*/
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