From 824b5e2021b564369b17dbce7fd67ef36c56d69e Mon Sep 17 00:00:00 2001 From: dwmalone Date: Tue, 5 Jan 2010 20:32:08 +0000 Subject: Change a char that is used as an index into an array into an unisgned char. Add a missing new style function definition. --- usr.bin/ctags/ctags.c | 2 +- usr.bin/ctags/fortran.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin') diff --git a/usr.bin/ctags/ctags.c b/usr.bin/ctags/ctags.c index eda4145..2d9e3f3 100644 --- a/usr.bin/ctags/ctags.c +++ b/usr.bin/ctags/ctags.c @@ -244,7 +244,7 @@ void init(void) { int i; - const char *sp; + const unsigned char *sp; for (i = 0; i < 256; i++) { _wht[i] = _etk[i] = _itk[i] = _btk[i] = NO; diff --git a/usr.bin/ctags/fortran.c b/usr.bin/ctags/fortran.c index 3761615..a494752 100644 --- a/usr.bin/ctags/fortran.c +++ b/usr.bin/ctags/fortran.c @@ -52,7 +52,7 @@ static void takeprec(void); char *lbp; /* line buffer pointer */ int -PF_funcs() +PF_funcs(void) { bool pfcnt; /* pascal/fortran functions found */ char *cp; -- cgit v1.1