mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-16 01:36:48 +00:00
Fix constify the world compile problem.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@196188 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -64,7 +64,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
|
||||
***/
|
||||
static char *app = "MP3Player";
|
||||
|
||||
static int mp3play(char *filename, int fd)
|
||||
static int mp3play(const char *filename, int fd)
|
||||
{
|
||||
int res;
|
||||
|
||||
@@ -152,8 +152,8 @@ static int mp3_exec(struct ast_channel *chan, const char *data)
|
||||
return -1;
|
||||
}
|
||||
|
||||
res = mp3play((char *)data, fds[1]);
|
||||
if (!strncasecmp((char *)data, "http://", 7)) {
|
||||
res = mp3play(data, fds[1]);
|
||||
if (!strncasecmp(data, "http://", 7)) {
|
||||
timeout = 10000;
|
||||
}
|
||||
/* Wait 1000 ms first */
|
||||
|
Reference in New Issue
Block a user