Enhancement: Improve error handling in stellar's packet API by checking return values of metadata functions and adding descriptive error logging
This commit is contained in:
9
deps/timeout/timeout.h
vendored
9
deps/timeout/timeout.h
vendored
@@ -26,6 +26,11 @@
|
||||
#ifndef TIMEOUT_H
|
||||
#define TIMEOUT_H
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif
|
||||
|
||||
#include <stdbool.h> /* bool */
|
||||
#include <stdio.h> /* FILE */
|
||||
|
||||
@@ -259,4 +264,8 @@ TIMEOUT_PUBLIC struct timeout *timeouts_next(struct timeouts *, struct timeouts_
|
||||
#define timeouts_addf(T, to, timeout) \
|
||||
timeouts_add((T), (to), timeouts_f2i((T), (timeout)))
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* TIMEOUT_H */
|
||||
|
||||
Reference in New Issue
Block a user