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:
parent
dcdd21df34
commit
f3d2d238ed
2 changed files with 4 additions and 4 deletions
|
@ -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... */
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue