Change a char that is used as an index into an array into an unisgned char.

Add a missing new style function definition.
This commit is contained in:
David Malone 2010-01-05 20:32:08 +00:00
parent a50f74cc3a
commit e42dd26ae1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=201606
2 changed files with 2 additions and 2 deletions

View File

@ -244,7 +244,7 @@ void
init(void) init(void)
{ {
int i; int i;
const char *sp; const unsigned char *sp;
for (i = 0; i < 256; i++) { for (i = 0; i < 256; i++) {
_wht[i] = _etk[i] = _itk[i] = _btk[i] = NO; _wht[i] = _etk[i] = _itk[i] = _btk[i] = NO;

View File

@ -52,7 +52,7 @@ static void takeprec(void);
char *lbp; /* line buffer pointer */ char *lbp; /* line buffer pointer */
int int
PF_funcs() PF_funcs(void)
{ {
bool pfcnt; /* pascal/fortran functions found */ bool pfcnt; /* pascal/fortran functions found */
char *cp; char *cp;