aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2001-06-26 19:17:27 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2001-06-26 19:17:27 +0000
commitb2f99488c950c7e51114dedb7e50cf718f38e8d6 (patch)
tree8c37ed5814da9359b03ae10e2b476a0b6a496bb2
parent718bca924b717fa10623022435f9b3533c617357 (diff)
Version 0.1.9 from FTP
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@338 f38db490-d61c-443f-a65b-d21fe96a405b
-rwxr-xr-xapps/app_echo.c5
-rwxr-xr-xsched.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/apps/app_echo.c b/apps/app_echo.c
index db1eb9e9a..669018ec2 100755
--- a/apps/app_echo.c
+++ b/apps/app_echo.c
@@ -31,8 +31,8 @@ static char *app = "Echo";
static char *synopsis = "Echo audio read back to the user";
static char *descrip =
-" Echo(): Echo audio read from channel back to the channel. Returns 0\n"
-" if the user exits with the '#' key, or -1 if the user hangs up.\n";
+" Echo(): Echo audio read from channel back to the channel. Returns 0\n"
+"if the user exits with the '#' key, or -1 if the user hangs up.\n";
STANDARD_LOCAL_USER;
@@ -57,6 +57,7 @@ static int echo_exec(struct ast_channel *chan, void *data)
if (ast_write(chan, f))
break;
}
+ ast_frfree(f);
}
LOCAL_USER_REMOVE(u);
return res;
diff --git a/sched.c b/sched.c
index a4fb1096a..b9b44f869 100755
--- a/sched.c
+++ b/sched.c
@@ -23,6 +23,7 @@
#include <unistd.h>
#include <asterisk/sched.h>
#include <asterisk/logger.h>
+#include <asterisk/channel.h>
/* Determine if a is sooner than b */
#define SOONER(a,b) (((b).tv_sec > (a).tv_sec) || \
@@ -243,8 +244,8 @@ int ast_sched_del(struct sched_context *con, int id)
s = s->next;
}
ast_log(LOG_NOTICE, "Attempted to delete non-existant schedule entry %d!\n", id);
-#ifdef FORCE_CRASH
- crash();
+#ifdef DO_CRASH
+ CRASH;
#endif
return -1;
}