Skip to contentSkip to conversation

timeout: Clearified the ruturn behavior in comments

PATCH Applied Tim Kourt 2 participants 2 messages Apr 28, 2016

lore
Share & tools
lore

Tim Kourt

author
#0 lore raw

PATCH 1/1 timeout: Clearified the ruturn behavior in comments

---
 ell/timeout.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
ell/timeout.c +4 -2
index 499c6d6..4ba4e6e 100644
@@ -103,7 +103,8 @@ static inline int timeout_set(int fd, unsigned int seconds, long nanoseconds)
  * The timeout will on fire once. The timeout handling needs to be rearmed
  * with l_timeout_modify() to trigger again.
  *
- * Returns: a newly allocated #l_timeout object
+ * Returns: a newly allocated #l_timeout object. On failure, the function
+ * returns NULL.
  **/
 LIB_EXPORT struct l_timeout *l_timeout_create(unsigned int seconds,
 			l_timeout_notify_cb_t callback,
@@ -126,7 +127,8 @@ LIB_EXPORT struct l_timeout *l_timeout_create(unsigned int seconds,
  * The timeout will on fire once. The timeout handling needs to be rearmed
  * with l_timeout_modify_with_nanoseconds() to trigger again.
  *
- * Returns: a newly allocated #l_timeout object
+ * Returns: a newly allocated #l_timeout object. On failure, the function
+ * returns NULL.
  **/
 LIB_EXPORT struct l_timeout *l_timeout_create_with_nanoseconds(unsigned int seconds,
 			long nanoseconds, l_timeout_notify_cb_t callback,
Signature · 1 line
2.5.0
#1 lore raw

Hi Tim,

Quoted 4 lines · Tim Kourt
---
  ell/timeout.c | 6 ++++--
  1 file changed, 4 insertions(+), 2 deletions(-)

Applied, thanks.

Regards,
-Denis