pkgsrc/chat/bitchx/patches/patch-an
heas e96bb2c59f Fix pointers for cursor_not_in_display() & cursor_in_display(). Fixes
BUS error on sparc64.  Appears to apply to version Bitchx 1.1 too.
2004-06-27 00:35:04 +00:00

15 lines
969 B
Text

$NetBSD: patch-an,v 1.1 2004/06/27 00:35:04 heas Exp $
--- include/modval.h.orig 2001-05-19 20:40:58.000000000 +0000
+++ include/modval.h
@@ -279,8 +279,8 @@ extern Function_ptr *global;
#define output_line(x) ((int) (global[OUTPUT_LINE]((const unsigned char *)x)))
#define output_with_count(x, y, z) ((int) (global[OUTPUT_WITH_COUNT]((const unsigned char *)x, (int)y, (int)z)))
#define scroll_window(x) ((void) (global[SCROLL_WINDOW]((Window *)x)))
-#define cursor_not_in_display(x) ((void) (global[CURSOR_IN_DISPLAY]((Screen *)x)))
-#define cursor_in_display(x) ((void) (global[CURSOR_IN_DISPLAY]((Screen *)x)))
+#define cursor_not_in_display(x) ((void) (global[CURSOR_NOT_IN_DISPLAY]((Screen *)x)))
+#define cursor_in_display(x) ((void) (global[CURSOR_IN_DISPLAY]((Window *)x)))
#define is_cursor_in_display(x) ((int) (global[IS_CURSOR_IN_DISPLAY]((Screen *)x)))
#define repaint_window(x, y, z) ((void) (global[REPAINT_WINDOW]((Window *)x, (int)y, (int)z)))