30 lines
1.0 KiB
Plaintext
30 lines
1.0 KiB
Plaintext
$OpenBSD: patch-terminal_c,v 1.2 2003/11/17 22:59:32 fgsch Exp $
|
|
--- terminal.c.orig 2003-10-10 02:52:57.000000000 -0300
|
|
+++ terminal.c 2003-11-17 19:09:12.000000000 -0300
|
|
@@ -1056,14 +1056,14 @@ void exec_thread(unsigned char *path, in
|
|
|
|
void close_handle(void *p)
|
|
{
|
|
- int h = (int)p;
|
|
+ int h = (intptr_t)p;
|
|
close(h);
|
|
set_handlers(h, NULL, NULL, NULL, NULL);
|
|
}
|
|
|
|
void unblock_terminal(struct terminal *term)
|
|
{
|
|
- close_handle((void *)term->blocked);
|
|
+ close_handle((void *)(intptr_t)term->blocked);
|
|
term->blocked = -1;
|
|
if (!F) {
|
|
set_handlers(term->fdin, (void (*)(void *))in_term, NULL, (void (*)(void *))destroy_terminal, term);
|
|
@@ -1124,7 +1124,7 @@ void exec_on_terminal(struct terminal *t
|
|
if (!F) set_handlers(term->fdin, NULL, NULL, (void (*)(void *))destroy_terminal, term);
|
|
/*block_itrm(term->fdin);*/
|
|
} else {
|
|
- set_handlers(blockh, close_handle, NULL, close_handle, (void *)blockh);
|
|
+ set_handlers(blockh, close_handle, NULL, close_handle, (void *)(intptr_t)blockh);
|
|
}
|
|
}
|
|
} else {
|