From 123613853b67efeb0b5bcd5ffe880f1a519ff43a Mon Sep 17 00:00:00 2001 From: Mark Spencer Date: Fri, 21 Jun 2002 01:40:13 +0000 Subject: Version 0.1.12 from FTP git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@465 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_system.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'apps/app_system.c') diff --git a/apps/app_system.c b/apps/app_system.c index a4369125f..539515e4e 100755 --- a/apps/app_system.c +++ b/apps/app_system.c @@ -11,6 +11,7 @@ * the GNU General Public License */ +#include #include #include #include @@ -53,10 +54,10 @@ static int skel_exec(struct ast_channel *chan, void *data) /* Do our thing here */ res = system((char *)data); if (res < 0) { - ast_log(LOG_WARNING, "Unable to execute '%s'\n", data); + ast_log(LOG_WARNING, "Unable to execute '%s'\n", (char *)data); res = -1; } else if (res == 127) { - ast_log(LOG_WARNING, "Unable to execute '%s'\n", data); + ast_log(LOG_WARNING, "Unable to execute '%s'\n", (char *)data); res = -1; } else { if (res && ast_exists_extension(chan, chan->context, chan->exten, chan->priority + 101, chan->callerid)) -- cgit v1.2.3