From 66a7ed23cb3fbfea574b79d3ca4aed9f626c6e3f Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 22 Dec 2006 01:35:21 +0000 Subject: Make start_timer() and stop_timer() robust against incorrect usage. --- src/include/gpxe/retry.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/include/gpxe') diff --git a/src/include/gpxe/retry.h b/src/include/gpxe/retry.h index 7291db234..57be432e2 100644 --- a/src/include/gpxe/retry.h +++ b/src/include/gpxe/retry.h @@ -15,7 +15,10 @@ struct retry_timer { struct list_head list; /** Timeout value (in ticks) */ unsigned long timeout; - /** Start time (in ticks) */ + /** Start time (in ticks) + * + * A start time of zero indicates a stopped timer. + */ unsigned long start; /** Retry count */ unsigned int count; -- cgit v1.2.3-55-g7522