diff options
author | Michael Brown <mcb30@ipxe.org> | 2013-11-01 02:22:12 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2013-11-01 02:26:19 +0000 |
commit | 5e1fa5cd4090f229a40903f13abf328e86271717 (patch) | |
tree | 77a6302aeeb86f6c86fe95fb757a952a4ef7490e /src/include/usr | |
parent | b15dbc9cc65e8385a30513554129d7640bc8a0f9 (diff) | |
download | ipxe-5e1fa5cd4090f229a40903f13abf328e86271717.tar.gz |
[parseopt] Add parse_timeout()
Parsing a timeout value (specified in milliseconds) into an internal
timeout value measured in timer ticks is a common operation. Provide
a parse_timeout() value to carry out this conversion automatically.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/include/usr')
-rw-r--r-- | src/include/usr/pingmgmt.h | 2 | ||||
-rw-r--r-- | src/include/usr/prompt.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/include/usr/pingmgmt.h b/src/include/usr/pingmgmt.h index 4a2efc3bd..45ad5d394 100644 --- a/src/include/usr/pingmgmt.h +++ b/src/include/usr/pingmgmt.h @@ -11,6 +11,6 @@ FILE_LICENCE ( GPL2_OR_LATER ); #include <stdint.h> -extern int ping ( const char *hostname, unsigned long timeout_ms, size_t len ); +extern int ping ( const char *hostname, unsigned long timeout, size_t len ); #endif /* _USR_PINGMGMT_H */ diff --git a/src/include/usr/prompt.h b/src/include/usr/prompt.h index fc1946c7a..57e43d2dc 100644 --- a/src/include/usr/prompt.h +++ b/src/include/usr/prompt.h @@ -9,6 +9,6 @@ FILE_LICENCE ( GPL2_OR_LATER ); -extern int prompt ( const char *text, unsigned int wait_ms, int key ); +extern int prompt ( const char *text, unsigned long timeout, int key ); #endif /* _USR_PROMPT_H */ |