dtpad: Resolve 6 compiler warnings.
This commit is contained in:
@@ -276,7 +276,7 @@ static int dtpadXIOErrorHandler(
|
||||
* edit window)
|
||||
*
|
||||
************************************************************************/
|
||||
void
|
||||
int
|
||||
main(
|
||||
int argc,
|
||||
char **argv )
|
||||
|
||||
@@ -211,7 +211,7 @@ PrintOutputCreate(Widget shell)
|
||||
_poDefaultMargin,
|
||||
_poDefaultMargin,
|
||||
&parseError );
|
||||
assert(parseError == NULL);
|
||||
assert(parseError == 0);
|
||||
|
||||
return pOutput;
|
||||
}
|
||||
@@ -783,7 +783,7 @@ _poGetFileContents(char **contents, char *file)
|
||||
int nbytes;
|
||||
FILE *fp = NULL;
|
||||
|
||||
if (file == NULL || *file == NULL) return
|
||||
if (file == NULL || *file == '\0') return
|
||||
|
||||
/*
|
||||
* Open the file for reading.
|
||||
|
||||
@@ -318,7 +318,7 @@ restoreSession(
|
||||
|
||||
xrm_name[0] = XrmStringToQuark ("pads");
|
||||
xrm_name[1] = XrmStringToQuark ("numActivePads");
|
||||
xrm_name[2] = NULL;
|
||||
xrm_name[2] = 0;
|
||||
XrmQGetResource (db, xrm_name, xrm_name, &rep_type, &value);
|
||||
numPadsToRestore = atoi((char *)value.addr);
|
||||
|
||||
@@ -331,7 +331,7 @@ restoreSession(
|
||||
* we can find.
|
||||
*/
|
||||
xrm_name[0] = XrmStringToQuark ("mainWindow");
|
||||
xrm_name[2] = NULL;
|
||||
xrm_name[2] = 0;
|
||||
|
||||
/* get x position */
|
||||
xrm_name[1] = XrmStringToQuark ("x");
|
||||
@@ -382,7 +382,7 @@ RestoreMain(
|
||||
|
||||
sprintf(buf, "mainWindow%d", padNum);
|
||||
xrm_name[0] = XrmStringToQuark(buf);
|
||||
xrm_name[2] = NULL;
|
||||
xrm_name[2] = 0;
|
||||
|
||||
/* get x position */
|
||||
xrm_name[1] = XrmStringToQuark ("x");
|
||||
|
||||
Reference in New Issue
Block a user