canna input method: fixes 64 bit warnings

* ugly, this code is not really fixable anyway.
This commit is contained in:
Jérôme Duval 2013-05-10 21:41:14 +02:00
parent 847f1a92bd
commit b2b1ed3e22
2 changed files with 3 additions and 3 deletions

View File

@ -2039,7 +2039,7 @@ KC_changeServer(uiContext d, char *arg)
return 0;
}
}
return (int)RkwGetServerName();
return (int)(addr_t)RkwGetServerName();
}
static int
@ -2103,7 +2103,7 @@ KC_setUserInfo(uiContext d, jrUserInfoStruct *arg)
sprintf(buf, "%s/%s",
uinfo->topdir ? uinfo->topdir : "", "default.can");
}
wcKanjiControl((int)d, KC_SETINITFILENAME, buf);
wcKanjiControl((int)(addr_t)d, KC_SETINITFILENAME, buf);
RkwSetUserInfo(uinfo->uname, uinfo->gname, uinfo->topdir);
ret = 1;
goto return_ret;

View File

@ -688,7 +688,7 @@ _RkRealizeDD(struct DD *dd)
int ret = -1;
int tmpres;
int fdes;
long tloc;
time_t tloc;
char *whattime, *header, *dicsdir, *backup;
whattime = (char *)malloc(RK_LINE_BMAX);