$OpenBSD: patch-menu_c,v 1.8 2005/02/24 22:24:55 fgsch Exp $
--- menu.c.orig	Sat Jan 22 17:51:55 2005
+++ menu.c	Mon Feb 21 12:23:12 2005
@@ -397,7 +397,7 @@ void flush_caches(struct terminal *term,
 /* jde v historii o psteps polozek dozadu */
 void go_backwards(struct terminal *term, void *psteps, struct session *ses)
 {
-	long steps = (long) psteps;
+	long steps = (intptr_t) psteps;
 
 	/*if (ses->tq_goto_position)
 		--steps;
@@ -481,7 +481,7 @@ void menu_toggle(struct terminal *term, 
 
 void display_codepage(struct terminal *term, void *pcp, struct session *ses)
 {
-	long cp = (long)pcp;
+	long cp = (intptr_t)pcp;
 	struct term_spec *t = new_term_spec(term->term);
 	if (t) t->charset = cp;
 	cls_redraw_all_terminals();
@@ -489,7 +489,7 @@ void display_codepage(struct terminal *t
 
 void assumed_codepage(struct terminal *term, void *pcp, struct session *ses)
 {
-	long cp = (long)pcp;
+	long cp = (intptr_t)pcp;
 	ses->ds.assume_cp = cp;
 	redraw_terminal_cls(term);
 }
@@ -511,7 +511,7 @@ void charset_list(struct terminal *term,
 
 void set_val(struct terminal *term, void *ip, int *d)
 {
-	*d = (long)ip;
+	*d = (intptr_t)ip;
 }
 
 void charset_sel_list(struct terminal *term, struct session *ses, int *ptr, int noutf8)
@@ -1943,7 +1943,7 @@ void miscelaneous_options(struct termina
 
 void menu_set_language(struct terminal *term, void *pcp, struct session *ses)
 {
-	set_language((long)pcp);
+	set_language((intptr_t)pcp);
 	cls_redraw_all_terminals();
 }
 
