From f737b302890eafd62c5de0e552bc12f5a3e5c4da Mon Sep 17 00:00:00 2001 From: Peter Howkins Date: Thu, 30 Aug 2012 16:45:52 +0100 Subject: [PATCH] dtcalc: Fix some warnings related to mixing NULL, 0 and '\0' randomly. --- cde/programs/dtcalc/motif.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cde/programs/dtcalc/motif.c b/cde/programs/dtcalc/motif.c index e56a0f47..67e02410 100644 --- a/cde/programs/dtcalc/motif.c +++ b/cde/programs/dtcalc/motif.c @@ -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]; } } -- 2.25.1