const parameter

This commit is contained in:
Nils O. Selåsdal
2013-12-17 23:14:43 +01:00
parent 52addceff2
commit 607cc8cd9b
+3 -1
View File
@@ -53,7 +53,9 @@ void iomux_delete(struct IOMux *mux)
}
//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, >)) {
timersub(future, now, result);