mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-13 19:52:20 +00:00
dthello: Resolve 5 compiler warnings.
This commit is contained in:
parent
764a0c7e72
commit
f6bfbcb521
1 changed files with 5 additions and 5 deletions
|
@ -184,7 +184,7 @@ Usage(void)
|
|||
fprintf(stderr, (char *) GETMESSAGE (4, 4,
|
||||
"usage: %s [-display <display>] [-bground <color>] [-fground <color>]\n"),
|
||||
progName);
|
||||
fprintf(stderr, (char *) GETMESSAGE (4, 5,
|
||||
fprintf(stderr, "%s", (char *) GETMESSAGE (4, 5,
|
||||
"\t[-font <font>] [-string <message>] [-timeout <seconds>] [-file <name>]\n"));
|
||||
}
|
||||
|
||||
|
@ -759,7 +759,7 @@ SkipWhitespace (unsigned char *pch)
|
|||
|
||||
if (pch)
|
||||
{
|
||||
while ((*pch != NULL) &&
|
||||
while ((*pch != '\0') &&
|
||||
((chlen = mblen ((char *)pch, MB_CUR_MAX)) == 1) &&
|
||||
((*pch == '\t') || (*pch == ' ')))
|
||||
{
|
||||
|
@ -800,12 +800,12 @@ KillNewlines (unsigned char *pch)
|
|||
|
||||
if (pch)
|
||||
{
|
||||
while (*pch != NULL)
|
||||
while (*pch != '\0')
|
||||
{
|
||||
if (((chlen = mblen ((char *)pch, MB_CUR_MAX)) == 1) &&
|
||||
(*pch == '\n'))
|
||||
{
|
||||
*pch = NULL;
|
||||
*pch = '\0';
|
||||
break;
|
||||
}
|
||||
pch += chlen;
|
||||
|
@ -927,7 +927,7 @@ SeparateTextLines (unsigned char *pchIn)
|
|||
|
||||
for (i = 0; (i < numLines) && (pch1 < pchInEnd); i++)
|
||||
{
|
||||
while ((*pch2 != NULL) &&
|
||||
while ((*pch2 != '\0') &&
|
||||
!(((chlen = mblen ((char *)pch2, MB_CUR_MAX)) == 1) &&
|
||||
(*pch2 == '\n')))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue