openbsd-ports/www/links+/patches/patch-view_c

22 lines
767 B
Plaintext

$OpenBSD: patch-view_c,v 1.7 2003/11/17 22:59:32 fgsch Exp $
--- view.c.orig 2003-11-10 15:03:30.000000000 -0300
+++ view.c 2003-11-17 19:09:12.000000000 -0300
@@ -1692,7 +1692,7 @@ void back(struct session *ses, struct f_
void selected_item(struct terminal *term, void *pitem, struct session *ses)
{
- int item = (int)pitem;
+ int item = (intptr_t)pitem;
int old_item=item;
struct f_data_c *f = current_frame(ses);
struct link *l;
@@ -2544,7 +2544,7 @@ void send_event(struct session *ses, str
goto x;
}
if ((upcase(ev->x) == 'Q' && !ev->y) || ev->x == KBD_CTRL_C) {
- exit_prog(ses->term, (void *)(ev->x == KBD_CTRL_C), ses);
+ exit_prog(ses->term, (void *)(intptr_t)(ev->x == KBD_CTRL_C), ses);
goto x;
}
if (ev->x == KBD_CLOSE){