openbsd-ports/www/links+/patches/patch-view_c
brad ce5f13cdff upgrade to links 2.1pre11
fgsch@ pval@ ok
2003-06-12 13:47:44 +00:00

22 lines
744 B
Plaintext

$OpenBSD: patch-view_c,v 1.5 2003/06/12 13:47:44 brad Exp $
--- view.c.orig Thu May 22 12:56:21 2003
+++ view.c Wed Jun 4 08:57:15 2003
@@ -1677,7 +1677,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;
@@ -2522,7 +2522,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){