Skip to content

Commit c367257

Browse files
committed
Address comments on #278
1 parent 26d6d08 commit c367257

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

wolfhsm/wh_timeout.h

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
/* Pick up compile-time configuration */
2929
#include "wolfhsm/wh_settings.h"
3030

31-
#define WH_MSEC_TO_USEC(sec) (sec * 1000ULL)
31+
#define WH_MSEC_TO_USEC(usec) (usec * 1000ULL)
3232
#define WH_SEC_TO_USEC(sec) (sec * 1000000ULL)
33-
#define WH_MIN_TO_USEC(sec) (sec * WH_SEC_TO_USEC(60))
33+
#define WH_MIN_TO_USEC(min) (min * WH_SEC_TO_USEC(60))
3434

3535
#include <stdint.h>
3636

@@ -86,6 +86,9 @@ int wh_Timeout_Stop(whTimeoutCtx* timeout);
8686
/**
8787
* Check whether a timeout has expired.
8888
*
89+
* If the timeout is expired and an expired callback is configured, the
90+
* callback is invoked before returning.
91+
*
8992
* @param timeout The timeout context to check.
9093
* @return 1 if expired, 0 if not expired or disabled.
9194
*/

0 commit comments

Comments
 (0)