Commit Graph

137 Commits

Author SHA1 Message Date
Patrick Georgi 7ab683d29a handle missing return values 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 5787ee456e avoid use-after-free 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
Jon Trulson e03eabfd59 #127: dtcm: solaris - use readdir instead of readdir_r 2022-08-07 15:11:21 -06:00
Chase 60e60b9836 configure: detect libm 2022-07-31 18:33:49 -06:00
Chase 9a9d586e87 configure: detect libdl 2022-07-31 18:33:49 -06:00
Chase edf4319548 Discontinue HPUX support 2022-07-23 17:49:33 -06:00
Peter Howkins 04fcc11f12 dtcm: Resolve format-overflow issues 2021-12-24 10:50:28 -07:00
Peter Howkins 2c134302c8 dtcm: Resolve uninitialized warnings 2021-12-24 10:50:28 -07:00
Jon Trulson 3a0e92adb6 Rename autotools_config.h to cde_config.h to better reflect it's ownership. 2021-12-22 13:21:43 -07:00
Jon Trulson e10d06f210 configure/Makefiles: add checks for Xmu, Xext, and Xdmcp
We also remove sun pro specific options, and do some general cleanup
as well as remove hardcoded library refs like -lXm, -lXext, etc...
2021-12-21 16:42:22 -07:00
Jon Trulson ab409095d6 Fix a couple of unused-comparison clang warnings 2021-12-12 12:52:14 -07:00
OBATA Akio e0508b3130 dtcm: change to detect TZ offset way with configure 2021-10-23 18:29:04 +09:00
OBATA Akio 87bdee3d19 dtcm: change to use `_XLocaltime` instead of `localtime` consitently 2021-10-23 16:54:35 +09:00
OBATA Akio fb91c9416d dtcm: resolve mismatch between `tm.tm_gmtoff` and global `timezone`
`timezone` and `tm.tm_gmtoff` represent reversed sign value each other.
Change `tm.tm_gmtoff` usage to be matched with `timezone`.
2021-10-23 16:54:35 +09:00
OBATA Akio 224f04cb29 dtcm: fix `localtime()` usage
It is expexted the first argument is `*time_t`, not `time_t`.
2021-10-23 16:54:35 +09:00
OBATA Akio 16eb6092b0 dtcm: prevent to use `NULL` as a Tick type
Tick (aka time_t) shall be an integer type, not a pointer.
Change to use `0` instead of `NULL`.
2021-10-16 17:07:37 +09:00
OBATA Akio 16fe76ed65 Fix to include system header files for using functions 2021-10-08 14:40:56 +09:00
Jon Trulson 51646fb06a programs/: remove Imakefiles for completed modules 2021-07-03 19:12:43 -06:00
Jon Trulson e8345c9241 autotools: specify tirpc lib to link the tooltalk binaries
Newer ubuntu's do not seem to honor the implied library dependency of
libtt->libtirpc, so we must explicitly specify libtirpc when linking
them.
2021-06-01 18:23:46 -06:00
Jon Trulson ece5c0ea14 Merge branch 'master' into autotools-conversion
Lost the ksh93 submodule so will re-add in a later commit.
2021-01-30 19:04:10 -07:00
Lev Kujawski 13c173d22c On Linux, use SVR4's (now POSIX) mktime() instead of BSD's non-standard timelocal(). 2021-01-10 18:08:00 -07:00
Peter Howkins d98b2c4c34 dtcm: Always use ANSI function prototypes 2020-11-29 01:55:09 +00:00
Jon Trulson 264871cefb Fix up a couple issues with multi-core builds and 2 race conditions 2019-11-22 13:42:02 -07:00
Jon Trulson c329d5cfd7 Remove $(TIRPCINC) from all Makefile.am files - it no longer exists
Also, restructure some of the dependencies in the lib/tt binaries.  We
will link with libtt (which will include libtirpc as a dependency),
and XTOOLLIB - all the right X11 stuff without needing to add it to
every OS.  Removed several uneeded OS specializations ("if LINUX",
etc) as a result.
2019-11-20 18:52:29 -07:00
Jon Trulson 444aa700c0 dtcm: make it build 2019-11-20 17:31:53 -07:00
Jon Trulson 730da7747c Change "if SUN" conditionals in remaining Makefile.am files to "if SOLARIS" 2019-10-28 18:54:17 -06:00
Chase ca20cfe55b programs/dtcm: add automake files 2019-10-23 15:34:20 -06:00
Peter Howkins e2f1df0c8b dtcm: Coverity 89185 2018-07-13 19:26:38 +01:00
Peter Howkins 8950afd36a dtcm: Coverity 87565 2018-07-13 19:13:13 +01:00
Peter Howkins 3a4527980d dtcm: Coverity 89313 2018-07-13 19:06:58 +01:00
Peter Howkins f6886761da dtcm: Coverity 176055 2018-07-13 19:05:33 +01:00
Peter Howkins 4908fbb49a dtcm: Coverity 88350 2018-07-13 19:00:54 +01:00
Peter Howkins 8f5048d54f dtcm: Coverity 88279 2018-07-13 18:59:43 +01:00
Peter Howkins 8e11140662 dtcm: Coverity 88250 2018-07-13 18:49:37 +01:00
Peter Howkins cc79da451b dtcm: Coverity 88745 2018-07-13 18:48:31 +01:00
Peter Howkins c2c9c01051 dtcm: Coverity 89232 2018-07-13 18:47:22 +01:00
Peter Howkins ce9bc0603a dtcm: Coverity 89341 2018-07-13 18:44:12 +01:00
Peter Howkins c4940d8f78 dtcm: Coverity 89517 2018-07-13 18:42:56 +01:00
Peter Howkins cad7519b46 dtcm: Coverity 88200 2018-07-13 18:41:13 +01:00
Peter Howkins 261adc44d0 dtcm: Coverity 88494 2018-07-13 18:39:35 +01:00
Peter Howkins 2e0716d5cf dtcm: Coverity 88079 2018-07-13 18:38:06 +01:00
Peter Howkins 1563031cd8 dtcm: Coverity 89160 2018-07-13 18:36:50 +01:00
Peter Howkins a047b0be0e dtcm: Coverity 89595 2018-07-13 18:35:25 +01:00
Peter Howkins abf0b710b7 dtcm: Coverity 88253 2018-07-13 18:34:09 +01:00
Peter Howkins 67e1ccffc6 dtcm: Coverity 89371 2018-07-13 18:32:55 +01:00
Peter Howkins 1dfff588d6 dtcm: Coverity 89398 2018-07-13 18:31:25 +01:00
Peter Howkins 8edba6be7b dtcm: Coverity 88778 2018-07-13 18:29:52 +01:00
Peter Howkins 49f7c0afa0 dtcm: Coverity 89234 2018-07-13 18:28:35 +01:00