From: Kevin P. Fleming Date: Wed, 10 Oct 2007 06:24:41 +0000 (+0000) Subject: use a macro instead of an inline function, so that backtraces will report the caller... X-Git-Tag: 1.4.13~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9cdda4fc78a0fd03759bded3699a5e8bf1b0f87c;p=thirdparty%2Fasterisk.git use a macro instead of an inline function, so that backtraces will report the caller of ast_frame_free() properly git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@85195 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/frame.h b/include/asterisk/frame.h index cc3aa5d832..103a00058d 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