mirror of
https://github.com/opnsense/src.git
synced 2026-04-29 18:32:49 -04:00
LinuxKPI: cast jiffies_to_msecs() result
jiffies_to_msecs() is expected to return an uint_t. In order to avoid changing printf format strings, properly cast the result to the expected type. Sponsored by: The FreeBSD Foundation MFC after: 10 days Reviewed by: hselasky Differential Revision: https://reviews.freebsd.org/D40486
This commit is contained in:
parent
b2dcde7e9e
commit
08bc2cc4c4
1 changed files with 1 additions and 1 deletions
|
|
@ -40,7 +40,7 @@
|
|||
|
||||
#define jiffies ticks
|
||||
#define jiffies_64 ticks
|
||||
#define jiffies_to_msecs(x) (((int64_t)(int)(x)) * 1000 / hz)
|
||||
#define jiffies_to_msecs(x) ((unsigned int)(((int64_t)(int)(x)) * 1000 / hz))
|
||||
|
||||
#define MAX_JIFFY_OFFSET ((INT_MAX >> 1) - 1)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue