[asterisk-commits] tilghman: branch 1.4 r131985 - in /branches/1.4: include/asterisk/ main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jul 18 11:46:24 CDT 2008


Author: tilghman
Date: Fri Jul 18 11:46:23 2008
New Revision: 131985

URL: http://svn.digium.com/view/asterisk?view=rev&rev=131985
Log:
Preserve ABI compatibility with last change

Modified:
    branches/1.4/include/asterisk/sched.h
    branches/1.4/main/sched.c

Modified: branches/1.4/include/asterisk/sched.h
URL: http://svn.digium.com/view/asterisk/branches/1.4/include/asterisk/sched.h?view=diff&rev=131985&r1=131984&r2=131985
==============================================================================
--- branches/1.4/include/asterisk/sched.h (original)
+++ branches/1.4/include/asterisk/sched.h Fri Jul 18 11:46:23 2008
@@ -118,8 +118,12 @@
  * \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

Modified: branches/1.4/main/sched.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/main/sched.c?view=diff&rev=131985&r1=131984&r2=131985
==============================================================================
--- branches/1.4/main/sched.c (original)
+++ branches/1.4/main/sched.c Fri Jul 18 11:46:23 2008
@@ -255,7 +255,11 @@
  * 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;
 




More information about the asterisk-commits mailing list