$OpenBSD: patch-terminal_c,v 1.4 2005/02/24 22:24:55 fgsch Exp $
--- terminal.c.orig	Sun Jan  2 17:17:26 2005
+++ terminal.c	Mon Feb 21 12:19:29 2005
@@ -1059,14 +1059,14 @@ void exec_thread(unsigned char *path, in
 
 void close_handle(void *p)
 {
-	long h = (long)p;
+	long h = (intptr_t)p;
 	close(h);
 	set_handlers(h, NULL, NULL, NULL, NULL);
 }
 
 void unblock_terminal(struct terminal *term)
 {
-	close_handle((void *)term->blocked);  /* 1087: warning: cast to pointer from integer of different size */
+	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);
