From 5e1fa5cd4090f229a40903f13abf328e86271717 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 1 Nov 2013 02:22:12 +0000 Subject: [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 --- src/include/usr/pingmgmt.h | 2 +- src/include/usr/prompt.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/include/usr') 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 -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 */ -- cgit v1.2.3-55-g7522