dtfile: fix pointer to integer conversion
Use XtArgVal (usually (long)) to convert (XtPointer) to (int) and back. This provides safe way to convert and avoids compiler warning.
This commit is contained in:
committed by
Jon Trulson
parent
359126b739
commit
18a78bbff5
@@ -175,7 +175,7 @@ replace_rename_ok_callback(
|
||||
char *newFileName = NULL;
|
||||
int newFileDirLen;
|
||||
int rename_rc;
|
||||
Boolean same = (Boolean)client_data;
|
||||
Boolean same = (Boolean)(XtArgVal)client_data;
|
||||
|
||||
/* if same is true, then the object is tring to be copied into the same
|
||||
* folder as itself. So the existing files stay the same and the new files
|
||||
@@ -441,7 +441,7 @@ replace_rename_radio_callback(
|
||||
|
||||
|
||||
if (state->set)
|
||||
switch ((int) client_data)
|
||||
switch ((int)(XtArgVal) client_data)
|
||||
{
|
||||
case RADIO_REPLACE:
|
||||
XtVaSetValues (G_rename_text,
|
||||
@@ -589,7 +589,7 @@ multicollide_ok_callback(
|
||||
struct stat buf;
|
||||
|
||||
|
||||
Boolean same = (Boolean)client_data;
|
||||
Boolean same = (Boolean)(XtArgVal)client_data;
|
||||
|
||||
/* if same is true, then the object is tring to be copied into the same
|
||||
* folder as itself. So the existing files stay the same and the new files
|
||||
@@ -1757,7 +1757,7 @@ Create_Action_Area(
|
||||
|
||||
if (i == actions.defaultAction)
|
||||
{
|
||||
XtPointer heightptr;
|
||||
XtArgVal heightptr;
|
||||
Dimension height, h;
|
||||
XtVaGetValues (action_area, XmNmarginHeight, &heightptr, NULL);
|
||||
height = (Dimension)heightptr;
|
||||
|
||||
Reference in New Issue
Block a user