summaryrefslogtreecommitdiffstats
path: root/src/include/usr
diff options
context:
space:
mode:
authorMichael Brown2013-11-01 03:22:12 +0100
committerMichael Brown2013-11-01 03:26:19 +0100
commit5e1fa5cd4090f229a40903f13abf328e86271717 (patch)
tree77a6302aeeb86f6c86fe95fb757a952a4ef7490e /src/include/usr
parent[ipv6] Add ndp_tx_router_solicitation() to send router solicitations (diff)
downloadipxe-5e1fa5cd4090f229a40903f13abf328e86271717.tar.gz
ipxe-5e1fa5cd4090f229a40903f13abf328e86271717.tar.xz
ipxe-5e1fa5cd4090f229a40903f13abf328e86271717.zip
[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.h2
-rw-r--r--src/include/usr/prompt.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/include/usr/pingmgmt.h b/src/include/usr/pingmgmt.h
index 4a2efc3b..45ad5d39 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 fc1946c7..57e43d2d 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 */