* background.c (background_attention): Cast pointer to long

instead of int because it's unsafe of 64-bit systems.
* main.c (init_xterm_support): Likewise.
This commit is contained in:
Pavel Roskin 2002-02-21 01:49:29 +00:00
parent 053fc87847
commit 8c9fc66db0
3 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2002-02-20 Pavel Roskin <proski@gnu.org>
* background.c (background_attention): Cast pointer to long
instead of int because it's unsafe of 64-bit systems.
* main.c (init_xterm_support): Likewise.
2002-02-18 Pavel Roskin <proski@gnu.org>
* utilunix.c (canonicalize_pathname) [__QNX__]: Fix detection

View File

@ -285,7 +285,7 @@ background_attention (int fd, void *closure)
}
/* If the routine is zero, then the child is telling us that he is dying */
if ((int) routine == MSG_CHILD_EXITING){
if ((long) routine == MSG_CHILD_EXITING){
unregister_task_running (ctx->pid, fd);
waitpid (ctx->pid, &status, 0);
return 0;

View File

@ -1684,7 +1684,7 @@ init_xterm_support (void)
#endif
/* -1 means invalid capability, shouldn't happen, but let's make it 0 */
if ((int) xmouse_seq == -1) {
if ((long) xmouse_seq == -1) {
xmouse_seq = NULL;
}