const parameter
This commit is contained in:
+3
-1
@@ -53,7 +53,9 @@ void iomux_delete(struct IOMux *mux)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//convert the difference between future and now
|
//convert the difference between future and now
|
||||||
static inline void future_to_interval(struct timeval *future, const struct timeval *now, struct timeval *result)
|
static inline void future_to_interval(const struct timeval *future,
|
||||||
|
const struct timeval *now,
|
||||||
|
struct timeval *result)
|
||||||
{
|
{
|
||||||
if (timercmp(future, now, >)) {
|
if (timercmp(future, now, >)) {
|
||||||
timersub(future, now, result);
|
timersub(future, now, result);
|
||||||
|
|||||||
Reference in New Issue
Block a user