diff options
Diffstat (limited to 'common/dispatch.c')
-rw-r--r-- | common/dispatch.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/dispatch.c b/common/dispatch.c index e019421e..6687ab17 100644 --- a/common/dispatch.c +++ b/common/dispatch.c @@ -96,7 +96,7 @@ struct timeval *process_outstanding_timeouts (struct timeval *tvp) * to the timer and use that. The complications arise in trying to ensure * that all of the corner cases are covered. The last one is potentially * more painful and requires more investigation. - * + * * The plan is continue with the older DHCP calls and timer list. The * calls will continue to manipulate the list but will also pass a * timer to the ISC timer code for the actual dispatch. Later, if desired, @@ -266,7 +266,7 @@ void add_timeout (when, where, what, ref, unref) sec = when->tv_sec - cur_tv.tv_sec; usec = when->tv_usec - cur_tv.tv_usec; - + if ((when->tv_usec != 0) && (usec < 0)) { sec--; usec += USEC_MAX; @@ -287,7 +287,7 @@ void add_timeout (when, where, what, ref, unref) usec = USEC_MAX - 1; } - /* + /* * This is necessary for the tracing code but we put it * here in case we want to compare timing information * for some reason, like debugging. |