1
0
Fork 0
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:
Peter Howkins 2012-08-30 16:45:52 +01:00
parent 5c68d52ce4
commit f737b30289

View file

@ -183,7 +183,7 @@ static Atom command_atom ;
static Atom wm_state_atom;
Boolean ignore_event = False;
XtIntervalId timerId = NULL;
XtIntervalId timerId = 0;
static int lastArmed[10];
static int countArmed = 0;
@ -4621,7 +4621,7 @@ setCalcHints()
{
ptr = DtStrchr (v->workspaces, ' ');
if (ptr != NULL) *ptr = NULL;
if (ptr != NULL) *ptr = '\0';
workspace_atoms = (Atom *) XtRealloc ((char *)workspace_atoms,
sizeof (Atom) * (num_workspaces + 1));
@ -4731,7 +4731,7 @@ char *file;
{
if (isspace(file[i]))
{
for(j = i; file[j] != NULL; j++)
for(j = i; file[j] != '\0'; j++)
file[j] = file[j + 1];
}
}