summaryrefslogtreecommitdiff
path: root/sched.c
diff options
context:
space:
mode:
authorMark Spencer <markster@digium.com>2001-06-26 19:17:27 +0000
committerMark Spencer <markster@digium.com>2001-06-26 19:17:27 +0000
commit7c83e673671632846e9b3fc74757ed7aebcc0375 (patch)
tree8c37ed5814da9359b03ae10e2b476a0b6a496bb2 /sched.c
parent37bcb5098b87a28d1d3c0469487eaa3d54d8134d (diff)
Version 0.1.9 from FTP
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@338 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'sched.c')
-rwxr-xr-xsched.c5
1 files changed, 3 insertions, 2 deletions
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;
}