aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_mp3.c
diff options
context:
space:
mode:
authorrmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-22 15:07:48 +0000
committerrmudgett <rmudgett@f38db490-d61c-443f-a65b-d21fe96a405b>2009-05-22 15:07:48 +0000
commitc830fc25b81608952079cfed304d42d54a05bad4 (patch)
tree1f2adc256d33e15a89539ac240ef5c98cccd5dc7 /apps/app_mp3.c
parent91973633c6045d337a8023e3eece5de746d0d515 (diff)
Fix constify the world compile problem.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@196188 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_mp3.c')
-rw-r--r--apps/app_mp3.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/app_mp3.c b/apps/app_mp3.c
index dbab73bca..1cea8e329 100644
--- a/apps/app_mp3.c
+++ b/apps/app_mp3.c
@@ -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 */