[patch] ksh: switch to bracktype(char)

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[patch] ksh: switch to bracktype(char)

Alexey Dobriyan-2
bracktype() operates on "char"s and fed with "char". Converting to int
is pointless.

Index: bin/ksh/vi.c
===================================================================
RCS file: /cvs/src/bin/ksh/vi.c,v
retrieving revision 1.22
diff -u -p -r1.22 vi.c
--- bin/ksh/vi.c 2005/12/11 20:31:21 1.22
+++ bin/ksh/vi.c 2006/03/08 22:36:55
@@ -35,7 +35,7 @@ static int vi_cmd(int, const char *);
 static int domove(int, const char *, int);
 static int redo_insert(int);
 static void yank_range(int, int);
-static int bracktype(int);
+static int bracktype(char);
 static void save_cbuf(void);
 static void restore_cbuf(void);
 static void edit_reset(char *, size_t);
@@ -1304,7 +1304,7 @@ yank_range(int a, int b)
 }
 
 static int
-bracktype(int ch)
+bracktype(char ch)
 {
  switch (ch) {