summaryrefslogtreecommitdiff
path: root/textproc/qsubst/patches/patch-ab
blob: 5baf1c53505c85b5d0fca4a6b609447edc3e79f1 (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
52
$NetBSD: patch-ab,v 1.2 2005/03/24 16:27:40 christos Exp $

--- qsubst.c.orig	2001-04-22 01:35:35.000000000 -0400
+++ qsubst.c	2005-03-24 11:23:34.000000000 -0500
@@ -105,7 +105,7 @@
 #include <signal.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <strings.h>
+#include <string.h>
 #include <termcap.h>
 #include <termios.h>
 #include <unistd.h>
@@ -166,9 +166,9 @@
   { tstp_self();
     return;
   }
- tcsetattr(0,TCSAFLUSH|TCSASOFT,&orig_tio);
+ tcsetattr(0,TCSAFLUSH,&orig_tio);
  tstp_self();
- tcsetattr(0,TCSADRAIN|TCSASOFT,&tio);
+ tcsetattr(0,TCSADRAIN,&tio);
 }
 
 static void limit_above_below(void)
@@ -181,7 +181,7 @@
   }
 }
 
-static int issymchar(char c)
+static int issymchar(unsigned char c)
 {
  return( isascii(c) &&
 	 ( isalnum(c) ||
@@ -231,7 +231,7 @@
  tio.c_lflag &= ~(ICANON|ECHOKE|ECHOE|ECHO|ECHONL);
  tio.c_cc[VMIN] = 1;
  tio.c_cc[VTIME] = 0;
- tcsetattr(0,TCSANOW|TCSASOFT,&tio);
+ tcsetattr(0,TCSANOW,&tio);
  switch (read(0,&c,1))
   { case -1:
        break;
@@ -240,7 +240,7 @@
     case 1:
        break;
   }
- tcsetattr(0,TCSANOW|TCSASOFT,&otio);
+ tcsetattr(0,TCSANOW,&otio);
  return(c);
 }