Commit Graph
16 Commits
Author SHA1 Message Date
Patrick Georgi 1a524cb93a lib/tt: Align types
int, long, and Recno are close enough but newer compilers became more
strict about nominal vs structural compatibility.
2025-12-18 22:58:26 +01:00
Patrick Georgi acdee57318 Fix issues with va_lists
Identified by clangsa.
2025-12-18 22:58:26 +01:00
Patrick Georgi aced075a9f lib/DtSvc: Free memory more soundly
It _probably_ works to just pass free(ptr) another two arguments, but
compilers don't like this kind of sloppiness anymore.
The call site only expects this function to free the first value,
ignoring the other two, so model that in the local wrapper function.
2025-12-18 22:58:26 +01:00
Patrick Georgi ae001c320f fix misleading indentation
Mostly to shut up the compiler, but some real bugs hidden in there.
2025-12-18 22:58:26 +01:00
Patrick Georgi dca08bc5c2 terminate warning string 2025-12-18 22:58:26 +01:00
Patrick Georgi fa31987221 dtlogin: Avoid putenv to fix issue with passing stack address
putenv doesn't copy the data, so the stack address used here is plain
wrong. It _probably_ doesn't matter all that much because it's
immediately followed by execv(), but let's keep things clean.
2025-12-18 22:58:26 +01:00
Patrick Georgi b86eff35f0 Fix memory leaks 2025-12-18 22:58:26 +01:00
Patrick Georgi ae767ed3dc Mark error handlers as "noreturn"
Match X headers to satisfy newer compilers.
2025-12-18 22:58:26 +01:00
Patrick Georgi ef2c655f55 Use NULL instead of nullptr
NULL is standard for long enough in POSIX to always be available,
while C23 introduced nullptr as a new constant, creating a conflict
here.
2025-12-18 22:58:26 +01:00
Patrick Georgi 5787ee456e avoid use-after-free 2025-12-18 22:58:26 +01:00
Patrick Georgi 01b9288a2b Remove FAR declarations 2025-12-18 22:58:26 +01:00
Patrick Georgi ccbf6a8f8f lib/tt: pass int by ref 2025-12-18 22:58:26 +01:00
Patrick Georgi c0ad5170c9 Avoid "bool" variable name
C23 has a type of that name.
2025-12-18 22:58:26 +01:00
Patrick Georgi 4d41663c58 Avoid conflict with X11 headers 2025-12-18 22:58:25 +01:00
Patrick Georgi 3947facfa2 Remove trailing newlines 2025-12-18 22:58:24 +01:00
Patrick Georgi a6f26ad279 dtmail: Update project files 2025-12-18 00:39:02 +01:00