]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linprocfs: Fix i386 time type
authorWarner Losh <imp@FreeBSD.org>
Sat, 11 May 2024 22:36:23 +0000 (16:36 -0600)
committerWarner Losh <imp@FreeBSD.org>
Sun, 12 May 2024 00:38:17 +0000 (18:38 -0600)
commit02f481a30b8269c7cad24ec2920ca09751708a1e
tree61637d648cb74b1bf43ebbed48dfa80d8de373fe
parentc5f906d32d2bc8e37f1e1911382e27af7e6240ff
linprocfs: Fix i386 time type

Cast the time type to (long). This is correct on all architectures. On
i386, this promotes the int time_t to a long (which is also 32-bit). On
64-bit architectures, this promotes the 64-bit signed time_t to a 64-bit
signed int type.

Sponsored by: Netflix
sys/compat/linprocfs/linprocfs.c