mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-17 07:18:15 +00:00
Convert casts to unions, to fix alignment issues on Solaris
(closes issue #12932) Reported by: snuffy Patches: bug_12932_20080627.diff uploaded by snuffy (license 35) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@125386 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -136,14 +136,19 @@ struct ast_translator {
|
||||
*/
|
||||
struct ast_trans_pvt {
|
||||
struct ast_translator *t;
|
||||
struct ast_frame f; /*!< used in frameout */
|
||||
int samples; /*!< samples available in outbuf */
|
||||
struct ast_frame f; /*!< used in frameout */
|
||||
int samples; /*!< samples available in outbuf */
|
||||
/*! \brief actual space used in outbuf */
|
||||
int datalen;
|
||||
void *pvt; /*!< more private data, if any */
|
||||
char *outbuf; /*!< the useful portion of the buffer */
|
||||
plc_state_t *plc; /*!< optional plc pointer */
|
||||
struct ast_trans_pvt *next; /*!< next in translator chain */
|
||||
void *pvt; /*!< more private data, if any */
|
||||
union {
|
||||
char *c; /*!< the useful portion of the buffer */
|
||||
unsigned char *uc; /*!< the useful portion of the buffer */
|
||||
int16_t *i16;
|
||||
uint8_t *ui8;
|
||||
} outbuf;
|
||||
plc_state_t *plc; /*!< optional plc pointer */
|
||||
struct ast_trans_pvt *next; /*!< next in translator chain */
|
||||
struct timeval nextin;
|
||||
struct timeval nextout;
|
||||
unsigned int destroy:1;
|
||||
|
||||
Reference in New Issue
Block a user