summaryrefslogtreecommitdiff
path: root/main/sched.c
diff options
context:
space:
mode:
authorRussell Bryant <russell@russellbryant.com>2008-05-14 21:40:43 +0000
committerRussell Bryant <russell@russellbryant.com>2008-05-14 21:40:43 +0000
commit08f91c1192559e847f955c57e7b259a9f1560a43 (patch)
treea37ef618305865e834fceab21afbecc8214fa482 /main/sched.c
parentc51989a309f2b50714f4c1bcad3987913fdb1f56 (diff)
Merged revisions 116463 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r116463 | russell | 2008-05-14 16:32:00 -0500 (Wed, 14 May 2008) | 4 lines Add ast_assert(), which can be used to handle fatal errors. It is only compiled in if dev-mode is enabled, and only aborts if DO_CRASH is defined. (inspired by issue #12650) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@116469 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/sched.c')
-rw-r--r--main/sched.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/main/sched.c b/main/sched.c
index 64ef413ea..91d86164e 100644
--- a/main/sched.c
+++ b/main/sched.c
@@ -373,9 +373,7 @@ int ast_sched_del(struct sched_context *con, int id)
if (!s) {
ast_debug(1, "Attempted to delete nonexistent schedule entry %d!\n", id);
-#ifdef DO_CRASH
- CRASH;
-#endif
+ ast_assert(0);
return -1;
}