Summary: | ASTERISK-04041: Wrong comment for ast_sched_add | ||
Reporter: | Kevin P. Fleming (kpfleming) | Labels: | |
Date Opened: | 2005-05-02 22:15:58 | Date Closed: | 2011-06-07 14:11:55 |
Priority: | Trivial | Regression? | No |
Status: | Closed/Complete | Components: | Core/General |
Versions: | Frequency of Occurrence | ||
Related Issues: | |||
Environment: | Attachments: | ( 0) 4139.stable.patch.txt | |
Description: | In sched.h, the comment for ast_sched_acc() says that the<br /> function returns 0 on success. But it actually returns an<br /> id that can be passed to ast_sched_del().<br /> <br /> Disclaimer is on file. ****** ADDITIONAL INFORMATION ****** --- sched.h.view.php?id=5#1" title="[07-17-03 11:08] administrator.6.~ Fri Apr 15 13:41:04 2005<br /> +++ sched.h Mon May 2 22:16:56 2005<br /> @@ -62,7 +62,7 @@<br /> * Schedule an event to take place at some point in the future. callback <br /> * will be called with data as the argument, when milliseconds into the<br /> * future (approximately)<br /> - * Returns 0 on success, -1 on failure<br /> + * Returns ID of the scheduled item on success, -1 on failure<br /> */<br /> extern int ast_sched_add(struct sched_context *con, int when, ast_sched_cb callback, void *data);<br /> <br /> | ||
Comments: | By: Michael Jerris (mikej) 2005-05-30 21:45:24 Drumkilla... a patch for you :) Disclaimer on file blah blah... By: Russell Bryant (russell) 2005-05-30 22:18:28 fixed in 1.0 By: Digium Subversion (svnbot) 2008-01-15 15:36:24.000-0600 Repository: asterisk Revision: 5790 U branches/v1-0/include/asterisk/sched.h ------------------------------------------------------------------------ r5790 | russell | 2008-01-15 15:36:24 -0600 (Tue, 15 Jan 2008) | 2 lines fix comment (bug ASTERISK-4041) ------------------------------------------------------------------------ http://svn.digium.com/view/asterisk?view=rev&revision=5790 |