From: Tilghman Lesher Date: Fri, 18 Jul 2008 16:46:23 +0000 (+0000) Subject: Preserve ABI compatibility with last change X-Git-Tag: 1.4.22-rc1~96 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=89b6e63a8bbc8f80f1086ee8ec57e061f9b55672;p=thirdparty%2Fasterisk.git Preserve ABI compatibility with last change git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@131985 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/include/asterisk/sched.h b/include/asterisk/sched.h index 6391a08083..0a601c7b45 100644 --- a/include/asterisk/sched.h +++ b/include/asterisk/sched.h @@ -118,8 +118,12 @@ int ast_sched_add_variable(struct sched_context *con, int when, ast_sched_cb cal * \param id ID of the scheduled item to delete * \return Returns 0 on success, -1 on failure */ +#ifndef DEVMODE +int ast_sched_del(struct sched_context *con, int id); +#else int _ast_sched_del(struct sched_context *con, int id, const char *file, int line, const char *function); #define ast_sched_del(a, b) _ast_sched_del(a, b, __FILE__, __LINE__, __PRETTY_FUNCTION__) +#endif /*! \brief Determines number of seconds until the next outstanding event to take place * Determine the number of seconds until the next outstanding event diff --git a/main/sched.c b/main/sched.c index 99c72c8d51..4e0a51bca0 100644 --- a/main/sched.c +++ b/main/sched.c @@ -255,7 +255,11 @@ int ast_sched_add(struct sched_context *con, int when, ast_sched_cb callback, co * would be two or more in the list with that * id. */ +#ifndef DEVMODE +int ast_sched_del(struct sched_context *con, int id) +#else int _ast_sched_del(struct sched_context *con, int id, const char *file, int line, const char *function) +#endif { struct sched *s;