Commit Graph

66 Commits

Author SHA1 Message Date
chase 4f5e7fe5e3 Use POSIX macros for linux 2018-05-24 18:22:55 -06:00
chase 164e695cd0 remove OSF1 support 2018-05-24 14:25:26 -06:00
chase 07900bd93b Remove Unixware and openserver support 2018-05-20 12:13:07 -06:00
chase 8a4f389634 Remove UXPDS support 2018-05-15 20:27:22 -06:00
chase 3ccf3a8b86 Add missing license headers on *.hh files and others 2018-05-12 15:49:13 -06:00
chase 33d2749ea3 Last of the spelling fixed 2018-04-28 12:36:44 -06:00
chase 6d3a19d8f9 Even more spelling fixed 2018-04-28 12:36:33 -06:00
chase 1fe5a550b2 Fix typo in license headers 2018-04-28 12:30:20 -06:00
chase 0aa8780fa1 Small spelling fixes 2018-04-25 19:40:19 -06:00
chase 00fc1c54c1 Rewrite csh scripts in sh, use sh instead of csh in scripts 2018-04-25 19:35:49 -06:00
Peter Howkins 3cf92f3741 dtmail: Further Coverity fixes 2018-04-24 02:38:56 +01:00
Peter Howkins f905d25392 dtmail: resolve coverity warnings related to uninitialised members in C++ classes 2018-04-20 02:36:24 +01:00
Peter Howkins 0b38496bd8 dtmail: resolve 'deference before null check' errors related to if(!NULL) checks around free() calls 2018-04-02 20:29:28 +01:00
Jon Trulson 77d10002bf dtmail/MsgScrollingList.C: coverity CID 87360; memset no effect 2018-03-31 18:55:56 -06:00
Jon Trulson ecee8b3f3a dtmail/DtMailRc.C: coverity CID 88975; use after free 2018-03-31 17:46:53 -06:00
Swift Griggs 1fdcd4c93d Patches from pkgsrc-WIP 2016-08-05 11:21:06 -06:00
Peter Howkins 2ea057d511 Disable all code related to libXp
deprecated and mostly no longer included on current OSes
2016-04-20 20:17:22 +01:00
Ulrich Wilkens f8fdf4920f Fix FreeBSD 10.2 build 2015-10-21 19:23:05 -06:00
Ulrich Wilkens 8b38d9ea49 Fix broken build on OpenBSD 2015-05-09 16:21:32 -06:00
Ulrich Wilkens 2b8b5f25b5 Support for new Solaris/OpenIndiana versions 2015-05-09 16:19:08 -06:00
Peter Howkins 90bd9101e3 dtmail: add a stdint.h include for openbsd, as reported by Daniel Diaz via the wiki. 2015-01-09 16:30:43 +00:00
Peter Howkins 0a0e1eebf5 dtmail: Resolve 50 compiler warnings. 2015-01-06 15:07:55 +00:00
Ulrich Wilkens 01d6c363fa OpenIndiana and Solaris port 2014-10-28 13:40:11 -06:00
Jon Trulson abfcb71d1d dtmail: MotifCmds.C: NULL is not False 2014-09-14 14:20:21 -06:00
Jon Trulson 10e295b967 WMSaveSession.C: NULL is not 0 2014-04-06 16:54:31 -06:00
Jon Trulson 4a22f0671b SendMsgDialog.C: NULL is not 0 2014-04-06 16:53:05 -06:00
Jon Trulson 20265cd088 RoamMenuWindow.C: NULL is not 0 2014-04-06 16:51:16 -06:00
Jon Trulson 0080185db9 RoamInterruptibleCmd.C: NULL is not 0 2014-04-06 16:49:24 -06:00
Jon Trulson b241414cda AttachArea.C: NULL is not 0, sprintf needs a format 2014-04-06 16:48:40 -06:00
Jon Trulson 8a96463f2e InterruptibleCmd.C, WorkingDialogManager.C: NULL is not 0 2014-04-06 16:46:09 -06:00
Jon Trulson 4312a1190b cleanup: eliminate missing sentinel warnings 2014-03-24 18:26:10 -06:00
Jon Trulson 78fec87fa6 Threads.C: NULL is not 0 2014-03-22 19:09:46 -06:00
Peter Tribble 468d576030 initial illumos port 2014-03-22 16:33:11 -06:00
Jon Trulson b282d3fa87 dtmail: stub out XmPrint stuff if there is no XmPrint support. 2014-03-10 20:30:24 -06:00
Ulrich Wilkens 2712d5f787 NetBSD port 2014-02-22 19:12:19 -07:00
Ulrich Wilkens 2d08153289 correction of message files 2013-09-15 19:35:53 -06:00
Pascal Stumpf 5b9d3fc5ec Use /usr/sbin/sendmail as default mailer on OpenBSD. 2012-11-19 19:44:29 -07:00
James Woodcock 0ea703ed1e Use the system strcasestr() on Linux. 2012-09-27 18:01:24 -06:00
Marcin Cieslak c70978e986 dtmail: fix warning: comparison is always false
This warning was caused by a typo:

warning: comparison is always false due to limited range of data type
2012-09-24 18:27:45 -06:00
Marcin Cieslak 22a0f8f497 dtmail: fix warning: NULL used in arithmetic
NULL != NULL makes no sense, really...
2012-09-24 18:27:18 -06:00
Marcin Cieslak e3564643ad dtmail: warning: 'DtMailBoolean' is promoted to (int)
Fix this warning:

RFCTransport.C: In function 'long unsigned int writeToFileDesc(const char*, int,
 __va_list_tag*)':
RFCTransport.C:91: warning: 'DtMailBoolean' is promoted to 'int' when passed thr
ough '...'
RFCTransport.C:91: warning: (so you should pass 'int' not 'DtMailBoolean' to 'va
_arg')
RFCTransport.C:91: note: if this code is reached, the program will abort
2012-09-24 18:26:27 -06:00
Marcin Cieslak 91bfe1e4dc dtmail: Fix XtVaGetValues() return value storage
At least one crash was caused by this
on the 64-bit system
2012-09-24 18:26:11 -06:00
Marcin Cieslak 3a246dfb9b Get rid of unpleasant cast, it causes SIGSEGV
Having a difficult choice between unplasant
cast to get a void * into an enumeration type
and "Something's wrong here" double cast
I decided for the latter.

At least it does not crash when the legal
value of zero is passed as the argument.
2012-09-24 18:25:28 -06:00
Jon Trulson a29fc20957 message catalogs: fix comment lines, also remove linux hack in merge.c
According to the spec, blank lines in message catalogs or lines
beginning with '$ ' are valid comments.

However, there were many cases where lines in the message catalogs
contained just a single '$', without the required space after it.

Under linux, this caused 126766 error lines (in my builds) of the
form:

... unknown directive `': line ignored

This also causes gencat to exit with a non-0 exit code.  Even though
gencat says it ignores the line, it really doesn't.

An early porting change to programs/localized/util/merge.c was made to
ignore this return value on linux.  This hack has now been removed.

Build logs are a lot smaller and cleaner now.
2012-09-03 15:12:57 -06:00
Ulrich Wilkens 5c68d52ce4 Two fixes for dtmail 2012-08-29 20:40:23 -06:00
Pascal Stumpf b578dca486 OpenBSD still uses GNU iconv, so the second argument to iconv(3) is not const. 2012-08-19 18:13:35 -06:00
Ulrich Wilkens 3bbcda35b9 Find correct system includes and libs on FreeBSD. 2012-08-19 18:08:31 -06:00
Marcin Cieslak 31aaa48344 FreeBSD port: dtsearch, dtterm, dtwidget, dthelp
FreeBSD portability of dtsearch, dtterm, dtwidget, dthelp

Work in progress for dtlogin and dtmail
2012-08-13 19:53:10 -06:00
Pascal Stumpf 0bbd4ff9aa Get rid of malloc.h.
This is a non-POSIX/ISO-C header.  It is ok to include this on Linux, but it
is obsolete on BSD; FreeBSD even throws an error if you include it with
__STDC__ defined.  Every system should nowadays have malloc() defined in
stdlib.h.

Diff is largely mechanical, replacing malloc.h with stdlib.h where it is not
yet included anyway.
2012-08-12 14:20:58 -06:00
Pascal Stumpf e3ad7e24e3 Current state of my dtmail work.
Mostly #ifdefs and casts; also, do not redefine strcasestr().  This will
probably be needed for Linux too when compiling without -fpermissive.
2012-08-11 19:53:02 -06:00