summaryrefslogtreecommitdiffstats
path: root/src/include/gpxe/retry.h
diff options
context:
space:
mode:
authorMichael Brown2006-12-22 02:35:21 +0100
committerMichael Brown2006-12-22 02:35:21 +0100
commit66a7ed23cb3fbfea574b79d3ca4aed9f626c6e3f (patch)
tree614848e50f4a41f92d877ac1a4028652991fcf25 /src/include/gpxe/retry.h
parentibft_fill_data() prototype change. (diff)
downloadipxe-66a7ed23cb3fbfea574b79d3ca4aed9f626c6e3f.tar.gz
ipxe-66a7ed23cb3fbfea574b79d3ca4aed9f626c6e3f.tar.xz
ipxe-66a7ed23cb3fbfea574b79d3ca4aed9f626c6e3f.zip
Make start_timer() and stop_timer() robust against incorrect usage.
Diffstat (limited to 'src/include/gpxe/retry.h')
-rw-r--r--src/include/gpxe/retry.h5
1 files changed, 4 insertions, 1 deletions
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;