summaryrefslogtreecommitdiff
path: root/devel/readline/patches/patch-ad
blob: 6d21344bf0e66b7e9d572de9bcb606fe67af0cd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
$NetBSD: patch-ad,v 1.4 2000/07/19 09:31:45 jlam Exp $

--- terminal.c.orig	Mon Jan 24 10:44:28 2000
+++ terminal.c	Sun Jul 16 22:34:03 2000
@@ -500,7 +500,7 @@
 
   if (term_backspace)
     for (i = 0; i < count; i++)
-      tputs (term_backspace, 1, _rl_output_character_function);
+      tputs (term_backspace, 1, (void *)_rl_output_character_function);
   else
     for (i = 0; i < count; i++)
       putc ('\b', _rl_out_stream);
@@ -513,7 +513,7 @@
 {
 #if defined (NEW_TTY_DRIVER)
   if (term_cr)
-    tputs (term_cr, 1, _rl_output_character_function);
+    tputs (term_cr, 1, (void *)_rl_output_character_function);
 #endif /* NEW_TTY_DRIVER */
   putc ('\n', _rl_out_stream);
   return 0;
@@ -533,7 +533,7 @@
 	case VISIBLE_BELL:
 	  if (visible_bell)
 	    {
-	      tputs (visible_bell, 1, _rl_output_character_function);
+	      tputs (visible_bell, 1, (void *)_rl_output_character_function);
 	      break;
 	    }
 	  /* FALLTHROUGH */
@@ -558,7 +558,7 @@
 {
 #if !defined (__DJGPP__)
   if (term_has_meta && term_mm)
-    tputs (term_mm, 1, _rl_output_character_function);
+    tputs (term_mm, 1, (void *)_rl_output_character_function);
 #endif
 }
 
@@ -568,8 +568,8 @@
 {
 #if !defined (__DJGPP__)
   if (on && term_ks)
-    tputs (term_ks, 1, _rl_output_character_function);
+    tputs (term_ks, 1, (void *)_rl_output_character_function);
   else if (!on && term_ke)
-    tputs (term_ke, 1, _rl_output_character_function);
+    tputs (term_ke, 1, (void *)_rl_output_character_function);
 #endif
 }