1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

dtksh: remove needless OS defines

This commit is contained in:
Chase 2019-12-15 10:28:22 -06:00 committed by Jon Trulson
parent cc73d03e49
commit f28abfe8dd
2 changed files with 2 additions and 15 deletions

View file

@ -67,11 +67,6 @@
#include "xmwidgets.h"
#include "msgs.h"
#if defined(SYSV) || defined(SVR4_0) || defined(SVR4) || defined(CSRG_BASED) \
|| defined(__linux__) || defined(sun)
#define lsprintf sprintf
#endif
extern Hashtab_t * Wclasses;
@ -486,9 +481,9 @@ DtkshCvtCallbackToString(
break;
}
if (count > 0)
p += lsprintf(p, "|%s", (String)cdata->ksh_cmd);
p += sprintf(p, "|%s", (String)cdata->ksh_cmd);
else
p += lsprintf(p, "%s", (String)cdata->ksh_cmd);
p += sprintf(p, "%s", (String)cdata->ksh_cmd);
count++;
}
}

View file

@ -3737,10 +3737,7 @@ do_catopen(
char * ptr;
nl_catd nlmsg_fd = (nl_catd)-1;
char * errmsg;
#if defined(SVR4) || defined (_AIX) || defined(CSRG_BASED) || \
defined(__linux__) || defined(sun)
char * nextMatch;
#endif
if (argc != 3)
{
@ -3762,8 +3759,6 @@ do_catopen(
*/
altCatName = XtMalloc(strlen(catName) + 10);
#if defined(SVR4) || defined (_AIX) || defined(CSRG_BASED) || \
defined(__linux__) || defined(sun)
/* These platforms don't have strrstr() */
ptr = NULL;
nextMatch = catName;
@ -3772,9 +3767,6 @@ do_catopen(
ptr = nextMatch;
nextMatch++;
}
#else
ptr = (char *)strrstr(catName, ".cat");
#endif
if (ptr && (strlen(ptr) == 4))
{
/* Strip off the ".cat", and try again */