1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

dtterm: Resolve 4 compiler warnings

This commit is contained in:
Peter Howkins 2012-09-17 16:28:55 +01:00
parent dcdd21df34
commit f3d2d238ed
2 changed files with 4 additions and 4 deletions

View file

@ -1793,7 +1793,7 @@ RestoreSession(
xrm_name[0] = XrmStringToQuark ("dtterm");
xrm_name[1] = XrmStringToQuark ("numClonedTerms");
xrm_name[2] = NULL;
xrm_name[2] = 0;
XrmQGetResource (db, xrm_name, xrm_name, &rep_type, &value);
/* if we got nothing back, bail out... */
@ -1875,7 +1875,7 @@ RestoreTerm(
sprintf(buf, "dtterm_%d", termNum);
xrm_name[0] = XrmStringToQuark(buf);
xrm_name[2] = NULL;
xrm_name[2] = 0;
/* Pass 1, before widget realization...
*/
@ -2088,7 +2088,7 @@ SetWorkSpaceHints
do {
ptr = strchr (workspaces, ' ');
if (ptr != NULL)
*ptr = NULL;
*ptr = 0;
thisWsAtom = None;
/* if we haven't hit a match, try interning the atom... */

View file

@ -259,7 +259,7 @@ dttermNewHandler(
displayString = newDisplayString;
displayEnv = (char *)malloc(strlen("DISPLAY=") +
strlen(displayString) + 2);
displayEnv[0]=NULL;
displayEnv[0]=0;
strcat(displayEnv, "DISPLAY=");
strcat(displayEnv, displayString);
putenv(displayEnv);