mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-02-15 04:32:24 +00:00
dtcalc: Fix some warnings related to mixing NULL, 0 and '\0' randomly.
This commit is contained in:
parent
5c68d52ce4
commit
f737b30289
1 changed files with 3 additions and 3 deletions
|
@ -183,7 +183,7 @@ static Atom command_atom ;
|
||||||
static Atom wm_state_atom;
|
static Atom wm_state_atom;
|
||||||
|
|
||||||
Boolean ignore_event = False;
|
Boolean ignore_event = False;
|
||||||
XtIntervalId timerId = NULL;
|
XtIntervalId timerId = 0;
|
||||||
|
|
||||||
static int lastArmed[10];
|
static int lastArmed[10];
|
||||||
static int countArmed = 0;
|
static int countArmed = 0;
|
||||||
|
@ -4621,7 +4621,7 @@ setCalcHints()
|
||||||
{
|
{
|
||||||
ptr = DtStrchr (v->workspaces, ' ');
|
ptr = DtStrchr (v->workspaces, ' ');
|
||||||
|
|
||||||
if (ptr != NULL) *ptr = NULL;
|
if (ptr != NULL) *ptr = '\0';
|
||||||
|
|
||||||
workspace_atoms = (Atom *) XtRealloc ((char *)workspace_atoms,
|
workspace_atoms = (Atom *) XtRealloc ((char *)workspace_atoms,
|
||||||
sizeof (Atom) * (num_workspaces + 1));
|
sizeof (Atom) * (num_workspaces + 1));
|
||||||
|
@ -4731,7 +4731,7 @@ char *file;
|
||||||
{
|
{
|
||||||
if (isspace(file[i]))
|
if (isspace(file[i]))
|
||||||
{
|
{
|
||||||
for(j = i; file[j] != NULL; j++)
|
for(j = i; file[j] != '\0'; j++)
|
||||||
file[j] = file[j + 1];
|
file[j] = file[j + 1];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue