mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
dtkcmds.c: fix some pointer<->int conversions
This commit is contained in:
parent
efa6b6eadc
commit
d7223930d4
1 changed files with 5 additions and 3 deletions
|
@ -53,8 +53,10 @@
|
||||||
#include <Dt/Action.h>
|
#include <Dt/Action.h>
|
||||||
#include <Dt/Dts.h>
|
#include <Dt/Dts.h>
|
||||||
#include <Dt/Print.h>
|
#include <Dt/Print.h>
|
||||||
|
#include <Dt/Session.h>
|
||||||
#include <Tt/tttk.h>
|
#include <Tt/tttk.h>
|
||||||
#include <Tt/tt_c.h>
|
#include <Tt/tt_c.h>
|
||||||
|
#include "XtCvtrs.h"
|
||||||
#include "hash.h"
|
#include "hash.h"
|
||||||
#include "stdio.h"
|
#include "stdio.h"
|
||||||
#include "defs.h"
|
#include "defs.h"
|
||||||
|
@ -6297,7 +6299,7 @@ TtFileCB(
|
||||||
int sameProcId )
|
int sameProcId )
|
||||||
{
|
{
|
||||||
Ttdt_file_cb_data *cdata = (Ttdt_file_cb_data *)clientData;
|
Ttdt_file_cb_data *cdata = (Ttdt_file_cb_data *)clientData;
|
||||||
int results;
|
long int results;
|
||||||
char strBuf[25];
|
char strBuf[25];
|
||||||
Namval_t * msgVar;
|
Namval_t * msgVar;
|
||||||
Namval_t * opVar;
|
Namval_t * opVar;
|
||||||
|
@ -8543,11 +8545,11 @@ rcCreateDisc(
|
||||||
np2 = ProcessWidgetHandle(cbData->widget, np, token, fp);
|
np2 = ProcessWidgetHandle(cbData->widget, np, token, fp);
|
||||||
}
|
}
|
||||||
else if ((strcmp(token, "DATA") == 0) && (cbData->reason == XmCR_ACTIVATE))
|
else if ((strcmp(token, "DATA") == 0) && (cbData->reason == XmCR_ACTIVATE))
|
||||||
np2 = ProcessIntValue((int)cbData->data, np, token, fp, "0x%x", NULL);
|
np2 = ProcessIntValue((int)((long)cbData->data), np, token, fp, "0x%x", NULL);
|
||||||
else if ((strcmp(token, "CALLBACKSTRUCT") == 0) &&
|
else if ((strcmp(token, "CALLBACKSTRUCT") == 0) &&
|
||||||
(cbData->reason == XmCR_ACTIVATE))
|
(cbData->reason == XmCR_ACTIVATE))
|
||||||
{
|
{
|
||||||
np2 = ProcessIntValue((int)cbData->callbackstruct, np, token,fp,"0x%x",
|
np2 = ProcessIntValue((int)((long)cbData->callbackstruct), np, token,fp,"0x%x",
|
||||||
NULL);
|
NULL);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue