]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Preserve ABI compatibility with last change
authorTilghman Lesher <tilghman@meg.abyt.es>
Fri, 18 Jul 2008 16:46:23 +0000 (16:46 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Fri, 18 Jul 2008 16:46:23 +0000 (16:46 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@131985 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/sched.h
main/sched.c

index 6391a0808322c84c112206c7e02c7030a69112ca..0a601c7b457af10cfbf7c0679972e86866340edb 100644 (file)
@@ -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
index 99c72c8d511c0baff3eba8dc5158aaa1d7e28941..4e0a51bca0351fe2c05d0bbd9b98e615b8180b9f 100644 (file)
@@ -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;