diff options
| author | Nathan Conrad <[email protected]> | 2020-04-02 23:00:47 -0400 |
|---|---|---|
| committer | Nathan Conrad <[email protected]> | 2020-04-02 23:07:31 -0400 |
| commit | 0d5f3c7f04a6b66d46164b4d4dab22fd4124622b (patch) | |
| tree | 10a5edb731c036572a8840963a34d520ee716f06 /src | |
| parent | 7a32ee58f3eb64b93a958462be40e4e1e4c0e16c (diff) | |
Set OSAL_TIMEOUT_WAIT_FOREVER to be a const, to avoid a pedantic gcc warning about signedness.
Diffstat (limited to 'src')
| -rw-r--r-- | src/osal/osal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/osal/osal.h b/src/osal/osal.h index 8b7527a7e..16ad34f3c 100644 --- a/src/osal/osal.h +++ b/src/osal/osal.h @@ -40,9 +40,10 @@ enum { OSAL_TIMEOUT_NOTIMEOUT = 0, // return immediately OSAL_TIMEOUT_NORMAL = 10, // default timeout - OSAL_TIMEOUT_WAIT_FOREVER = 0xFFFFFFFFUL }; +static const uint32_t OSAL_TIMEOUT_WAIT_FOREVER = 0xFFFFFFFFUL; + #define OSAL_TIMEOUT_CONTROL_XFER OSAL_TIMEOUT_WAIT_FOREVER typedef void (*osal_task_func_t)( void * ); |
