static void DbReloadProc(/* cd */);
static bool init_action_env(/* */);
-static void action_cb(DtActionInvocationID id, XtPointer cd,
- DtActionArg *args, int argcnt, int status);
+static void action_cb(long unsigned id, XtPointer cd,
+ DtActionArg *args, int argcnt, DtActionStatus status);
static void wait_action_done(/* */);
static bool actionEnabled = False;
}
static void action_cb(id, cd, args, argcnt, status)
- DtActionInvocationID id;
+ long unsigned id;
XtPointer cd; /* unused */
DtActionArg *args;
int argcnt;
- int status;
+ DtActionStatus status;
{
if (actionId == 0) {
DPR(("action_cb(): invalid id %d != %d\n", id, actionId));
if ((p = Opt.DisplayName) && *p) {
strcpy(buf, "DISPLAY=");
strcat(buf, p);
- putenv(NEWSTR(buf));
+ putenv(XtNewString(buf));
} else
p = getenv("DISPLAY");
if (p && *p)
ep = oenv->set = ALLOC(num + 2 + 1, EnvEnt);
for (i = 0; i < num && (p = setp[i]); i++)
- if (strcmp(p, xmod) && strcmp(p, xinput)) {
+ if (strcmp(p, xmod) && (!xinput || strcmp(p, xinput))) {
ep->name = NEWSTR(p);
ep++;
}
}
# endif /* old_hpux */
for (i = 0; i < num && (p = unsetp[i]); i++) {
- if (strcmp(p, xmod) == 0 || strcmp(p, xinput) == 0)
+ if (strcmp(p, xmod) == 0 || (xinput && strcmp(p, xinput)) == 0)
continue;
if (oenv->set) {
for (ep2 = oenv->set; ep2->name; ep2++)
*/
/* @(#)$TOG: win.c /main/9 1997/06/18 17:33:01 samborn $ */
+#include <stdint.h>
+
#include <X11/X.h>
#include <X11/Xlib.h>
#include <X11/Xatom.h>
Widget w;
XtPointer client_data, call_data;
{
- int canceled = (int)client_data == CANCEL_BTN;
+ int canceled = (int)(intptr_t) client_data == CANCEL_BTN;
int idx;
UserSelection *sel = &userSel;
Widget w;
XtPointer client_data, call_data;
{
- int new_idx = (int) client_data;
+ int new_idx = (int)(intptr_t) client_data;
if (new_idx < 0 || new_idx >= curList->num_ent) {
DPR(("select_cb():\tinvalid index (%d)\n", new_idx));
XtSetValues(tb[j], args, i);
} else {
tb[j] = createTB(SelRC, "ims", args, i);
- XtAddCallback(tb[j], XmNvalueChangedCallback, select_cb, (XtPointer)j);
+ XtAddCallback(tb[j], XmNvalueChangedCallback, select_cb, (XtPointer)(intptr_t) j);
add_btn_trans(tb[j]);
}
XmStringFree(str);
Widget w;
XtPointer client_data, call_data;
{
- int cancel = (int)client_data == CANCEL_BTN;
+ int cancel = (int)(intptr_t) client_data == CANCEL_BTN;
int ret = NoError;
char *new_host, *txt, *p;
bool host_changed = False;
XtPointer client_data, call_data;
{
int ret = NoError;
- int canceled = (int)client_data == CANCEL_BTN;
+ int canceled = (int)(intptr_t) client_data == CANCEL_BTN;
DPR(("mode_done(%s):\torg=%d cur=%d\n",
canceled ? "Cancel" : "OK", OrgMode, CurMode));
XtPointer client_data, call_data;
{
int is_set = (int)((XmToggleButtonCallbackStruct *)call_data)->set;
- int is_auto = (int)client_data;
+ int is_auto = (int)(intptr_t) client_data;
CurMode = (is_auto && is_set) ? SEL_MODE_AUTO : SEL_MODE_NOAUTO;
}
tb[1] = createTB(mode_rc, "button_1", bargs, k);
for (k = 0; k < NUM_SEL_MODE; k++) {
XtVaSetValues(tb[k], XmNset, k == set_idx ? True : False, NULL);
- XtAddCallback(tb[k], XmNvalueChangedCallback, mode_cb, (XtPointer)k);
+ XtAddCallback(tb[k], XmNvalueChangedCallback, mode_cb, (XtPointer)(intptr_t) k);
add_btn_trans(tb[k]);
}
XtManageChildren(tb, NUM_SEL_MODE);