mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-11 23:28:59 +00:00
gcc 4.2 has a new set of warnings dealing with cosnt pointers. This set of
changes gets all of Asterisk (minus chan_alsa for now) to compile with gcc 4.2. (closes issue #10774, patch from qwell) git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@83432 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -367,7 +367,7 @@ struct ast_channel {
|
||||
int oldwriteformat; /*!< Original writer format */
|
||||
|
||||
int timingfd; /*!< Timing fd */
|
||||
int (*timingfunc)(void *data);
|
||||
int (*timingfunc)(const void *data);
|
||||
void *timingdata;
|
||||
|
||||
enum ast_channel_state _state; /*!< State of line -- Don't write directly, use ast_setstate */
|
||||
@@ -1135,7 +1135,7 @@ int ast_autoservice_stop(struct ast_channel *chan);
|
||||
|
||||
/* If built with zaptel optimizations, force a scheduled expiration on the
|
||||
timer fd, at which point we call the callback function / data */
|
||||
int ast_settimeout(struct ast_channel *c, int samples, int (*func)(void *data), void *data);
|
||||
int ast_settimeout(struct ast_channel *c, int samples, int (*func)(const void *data), void *data);
|
||||
|
||||
/*! \brief Transfer a channel (if supported). Returns -1 on error, 0 if not supported
|
||||
and 1 if supported and requested
|
||||
|
Reference in New Issue
Block a user