dtfile: Remove 97 compiler warnings

This commit is contained in:
Peter Howkins
2012-08-30 19:54:01 +01:00
parent ef67cebea5
commit 764a0c7e72
19 changed files with 102 additions and 99 deletions

View File

@@ -762,7 +762,7 @@ MakeDesktopWindow(
XtSetValues (desktopWindow->shell, args, 4);
/* force the Window Manager to map it where I want it */
if (XtWindow(desktopWindow->shell) != NULL)
if (XtWindow(desktopWindow->shell) != 0)
{
XGetNormalHints(XtDisplay(desktopWindow->shell),
XtWindow(desktopWindow->shell), &wmSizeHints);
@@ -2042,7 +2042,7 @@ ProcessMoveCopyLinkDT (
DesktopRec *desktopWindow,
DtDndDropCallbackStruct *drop_parameters)
{
unsigned int modifiers = NULL;
unsigned int modifiers = 0;
int numFiles, i;
char ** file_set;
char ** host_set;
@@ -2079,7 +2079,7 @@ ProcessMoveCopyLinkDT (
else if (strcmp(command, "FILESYSTEM_LINK") == 0)
modifiers = ShiftMask;
else
modifiers = NULL;
modifiers = 0;
}
/*************************************************************/
@@ -2532,7 +2532,7 @@ PutOnDTCB (
XmUpdateDisplay (w);
if((int)client_data != NULL)
if((int)client_data != 0)
mbar = XtParent(w);
else
mbar = XmGetPostedFromWidget(XtParent(w));
@@ -3125,7 +3125,7 @@ SetupDesktopWindow (
if(openDirType == NEW)
ForceMyIconOpen(desktopWindow->host, NULL);
if( checkBrokenLink != 0 && checkBrokenLinkTimerId == NULL )
if( checkBrokenLink != 0 && checkBrokenLinkTimerId == 0 )
{
checkBrokenLinkTimerId = XtAppAddTimeOut(
XtWidgetToApplicationContext( toplevel ),
@@ -4384,7 +4384,7 @@ PutOnWorkspaceHandler(
XtFree( workspace );
if( checkBrokenLink != 0 && checkBrokenLinkTimerId == NULL )
if( checkBrokenLink != 0 && checkBrokenLinkTimerId == 0 )
{
checkBrokenLinkTimerId = XtAppAddTimeOut(
XtWidgetToApplicationContext( toplevel ),