[PATCH dockapps 0/4] Incompatible pointer type fixes

8 views
Skip to first unread message

Jeremy Sowden

unread,
Dec 24, 2024, 10:56:06 AM12/24/24
to Window Maker Dev
With recent versions of gcc, on architectures where `long` and `time_t` are not
the same size, passing pointers to `long` to `gmtime(3)` and `localtime(3)`,
leads to "incompatible pointer type" errors. These patches fix several of these
errors by using `time_t` instead.

Jeremy Sowden (4):
wmCalClock: fix type of arguments to `gmtime(3)` and `localtime(3)`
wmmoonclock: fix type of arguments to `gmtime(3)` and `localtime(3)`
wmsun: fix type of arguments to `gmtime_r(3)` and `localtime_r(3)`
wmtime: fix type of arguments to `localtime(3)`

wmCalClock/Src/wmCalClock.c | 2 +-
wmmoonclock/src/wmMoonClock.c | 3 ++-
wmsun/wmsun.c | 3 ++-
wmtime/wmtime.c | 4 ++--
4 files changed, 7 insertions(+), 5 deletions(-)

--
2.45.2

Reply all
Reply to author
Forward
0 new messages