]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linprocfs: Really fix time_t type issue
authorWarner Losh <imp@FreeBSD.org>
Sun, 12 May 2024 04:53:15 +0000 (22:53 -0600)
committerWarner Losh <imp@FreeBSD.org>
Sun, 12 May 2024 04:53:15 +0000 (22:53 -0600)
commitee2e36686e846d412deac23344185f4b8a8c0285
treed8bef8f62aa04a77a0dee3c90f3ad799024b3eac
parent6d79564fe341c8dbf09405cae1a0a76460aaf8aa
linprocfs: Really fix time_t type issue

The cast to (long) is wrong on all the other 32-bit platforms. (long
long) is the correct type on all platforms. Also, use a z modifier for
size_t which also fails on 32-bit platforms.

Fixes: 02f481a30b82
Sponsored by: Netflix
sys/compat/linprocfs/linprocfs.c