Jon Trulson
0ee97b3645
dtcm: fix implicit-function-declaration warnings
2021-11-16 14:46:48 -07:00
Jon Trulson
9369d1d5b9
dtcm: timeops.c/getdate.y: fix fbsd build errors
...
Commit e0508b31 introduced build errors on FreeBSD. This corrects
them.
HAVE_DECL_TIMEZONE should only be used to determine whether or not the
'timezone' variable is defined in a header file or whether it must be
specifically 'extern'ed.
On fbsd, a definition exists, but it is a function in libc and not an
integer timezone value that can be mutliplied or divided.
2021-10-23 21:59:33 -06: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
2c9db8fe37
dtcm: include <iso8601.h> of libcsa to resolve type mismatch
2021-10-12 17:24:26 +09:00
OBATA Akio
2390217a75
Fix to decide data and return type explicity
2021-10-08 17:25:17 +09:00
OBATA Akio
16fe76ed65
Fix to include system header files for using functions
2021-10-08 14:40:56 +09:00
OBATA Akio
20c1768a19
Change to detect iconv implementation with autoconf
...
Use iconv.m4 (and required macros) form gettext-0.21.
2021-09-21 14:04:40 +09:00
Jon Trulson
93e280b05b
dtcm: install-exec-hook needs $(DESTDIR)
2021-07-22 19:50:18 -06:00
Jon Trulson
51646fb06a
programs/: remove Imakefiles for completed modules
2021-07-03 19:12:43 -06:00
Edmond Orignac
53c35daea1
misc.c: in cm_mbchar check string!=NULL before dereferencing it
2021-06-02 19:56:28 -06:00
Liang Chang
ff952fcfbc
dtcm: Avoid to leave an unclosable window when there is no appointment in
...
"Appointment List...".
2021-06-02 19:56:27 -06:00
Liang Chang
e7402803df
dtcm: fix a segfault that occurred when opening the "Appointment List..." in
...
the "View" menu.
2021-06-02 19:56:26 -06:00
Liang Chang
4190143c91
dtcm: fix a segfault when "Drag Appt" in the dtcm_editor.
2021-06-02 19:56:26 -06:00
Lev Kujawski
a6ea2a2d52
Centralize catgets() calls through MsgCat
...
CDE has relied upon catgets() implementations following a relaxed
interpretation of the XPG internationalization standard that ignored
-1, the standard error value returned by catopen, as the catalog
argument. However, this same behavior causes segmentation faults with
the musl C library.
This patch:
- Centralizes (with the exception of ToolTalk) all calls to catopen(),
catgets(), and catclose() through MsgCat within the DtSvc library.
- Prevents calls to catgets() and catclose() that rely upon
undefined behavior.
- Eliminates a number of bespoke catgets() wrappers, including multiple
redundant caching implementations designed to work around a design
peculiarity in HP/UX.
- Eases building CDE without XPG internationalization support by providing
the appropriate macros.
2021-06-02 19:55:15 -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
Chase
2642674ed4
dtcm: make /var/spool/calendar for user
2021-03-14 15:09:03 -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
90e61dda5f
Merge branch 'master' into autotools-conversion
2020-11-24 16:53:24 -07:00
Peter Howkins
67f62e5a8a
all: remove deprecated sys_errlist[] and replace with ANSI C strerror()
2020-11-02 05:30:08 +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
wmoxam
ab741a1241
'notdef' means it's not used, so we remove it
2019-10-15 20:32:13 -06:00
Jon Trulson
fd3cffcb37
dtcalc: increase highlight thickness to match Solaris CDE
...
This patch was manually added via a diff supplied from a user on the
CDE mailing list: Michele Ghisolfo <ghisolfo.m@gmail.com>
2019-10-14 14:30:58 -06:00
Jose Rubio
db7370b62b
Cleanup of -Wpointer-compare warnings.
2019-08-19 18:02:25 +02:00
Adam Sampson
ae499c794e
Explicitly initialise two more static pointers
...
"dtcm: Coverity 88006" fixed this for buf, but not for string in the
same function (and we may as well initialise string_head for consistency
too).
2019-01-26 00:07:36 +00:00
Adam Sampson
162c88b6ea
Don't dereference an uninitialised pointer
...
This was an incorrect fix in "dtcm: Coverity 88382".
2019-01-26 00:05:54 +00:00
Adam Sampson
a97ab71059
Avoid a NULL pointer dereference
...
"dtcm: Coverity 89051" fixed an instance of this on the previous line,
but not this one.
2019-01-26 00:03:34 +00:00
Chase
4d7f9df692
Use iconv on linux
2019-01-14 10:48:28 -07:00
Jon Trulson
f6d83dd5e3
Merge branch 'master' into cde-next
2018-08-01 19:18:17 -06:00
chase
66db2259f7
Remove redundant motif widgets
2018-07-29 16:52:44 -06:00
Peter Howkins
e2f1df0c8b
dtcm: Coverity 89185
2018-07-13 19:26:38 +01:00
Peter Howkins
10a0f55b4a
dtcm: Coverity 89051
2018-07-13 19:25:15 +01:00
Peter Howkins
6d7525e174
dtcm: Coverity 88955
2018-07-13 19:24:11 +01:00
Peter Howkins
f4a5433f32
dtcm: Coverity 88884
2018-07-13 19:23:05 +01:00
Peter Howkins
3af957e308
dtcm: Coverity 88382
2018-07-13 19:19:58 +01:00
Peter Howkins
a0edcdcc42
dtcm: Coverity 88069
2018-07-13 19:16:00 +01:00
Peter Howkins
67fb14c52b
dtcm: Coverity 87942
2018-07-13 19:14:45 +01:00
Peter Howkins
8950afd36a
dtcm: Coverity 87565
2018-07-13 19:13:13 +01:00
Peter Howkins
c7a649afb9
dtcm: Coverity 88006
2018-07-13 19:11:29 +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