Fix warnings in dtwm
- Improve pointer/int compatibility - Include unpublished Dt headers in Dt - Use <Xm/XmPrivate.h> for unpublished Motif functions There are still warnings left generated because ElementValue.parsed_value should really be a union. There are also some warnings left because of XtPointer casting and some unused variables and functions.
This commit is contained in:
committed by
Jon Trulson
parent
8a57173ec2
commit
6e37640f11
@@ -1142,7 +1142,7 @@ _DtWmParseNextLine (
|
||||
/* copy all but end-of-line and newlines to line buffer */
|
||||
{
|
||||
if (chlen == -1)
|
||||
*(parseP)++;
|
||||
parseP++;
|
||||
else
|
||||
{
|
||||
while (chlen--)
|
||||
@@ -1341,13 +1341,13 @@ _DtWmParseLineNumber (
|
||||
*
|
||||
*************************************<->***********************************/
|
||||
|
||||
void _DtWmParseToLower (unsigned char *string)
|
||||
void _DtWmParseToLower (char *string)
|
||||
{
|
||||
unsigned char *pch = string;
|
||||
char *pch = string;
|
||||
#ifdef MULTIBYTE
|
||||
int chlen;
|
||||
|
||||
while ((chlen = mblen ((char *)pch, MB_CUR_MAX)) > 0)
|
||||
while ((chlen = mblen (pch, MB_CUR_MAX)) > 0)
|
||||
{
|
||||
if ((chlen == 1) && (isupper (*pch)))
|
||||
{
|
||||
@@ -1810,7 +1810,7 @@ _DtWmParseExpandEnvironmentVariables (
|
||||
if (!pchNext)
|
||||
{
|
||||
/* it's the rest of the string */
|
||||
chSave = NULL;
|
||||
chSave = '\0';
|
||||
bEatBreak = False;
|
||||
pchNext = pch + strlen ((char *) pch);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user