aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-18 21:22:21 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-18 21:22:21 +0000
commit2efea2031b9b3879ce3f582810d99ccfdd50b867 (patch)
treef84039cd15901fdc8bc27bfd433b4a0de6aea6f8
parentf67348cc011b9fe9987fb5e952bf2176be68bc2b (diff)
Since we're relying on the offset between the frame and the beginning of the translator
pvt struct, set the packed attribute to make sure we get to the right place. (potential fix for issue #11792) git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@99079 f38db490-d61c-443f-a65b-d21fe96a405b
-rw-r--r--include/asterisk/translate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asterisk/translate.h b/include/asterisk/translate.h
index a81d0072a..9437fa4e9 100644
--- a/include/asterisk/translate.h
+++ b/include/asterisk/translate.h
@@ -149,7 +149,7 @@ struct ast_trans_pvt {
struct ast_trans_pvt *next; /*!< next in translator chain */
struct timeval nextin;
struct timeval nextout;
-};
+} attribute_packed;
/*! \brief generic frameout function */
struct ast_frame *ast_trans_frameout(struct ast_trans_pvt *pvt,