1
1

in parse_rcfile(), change variable i from an int to a size_t, for

consistency


git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@3575 35c25a1d-7b9e-4130-9fde-d3aeb78583b8
Этот коммит содержится в:
David Lawrence Ramsey 2006-05-26 13:38:49 +00:00
родитель 558d34f5ba
Коммит db39a5e80d
2 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -260,6 +260,8 @@ CVS code -
parse_rcfile() parse_rcfile()
- Properly generate an error if we've read in a syntax without - Properly generate an error if we've read in a syntax without
any associated color commands. (DLR) any associated color commands. (DLR)
- Change variable i from an int to a size_t, for consistency.
(DLR)
do_rcfile() do_rcfile()
- Check for the rcfile's being a directory or device file and - Check for the rcfile's being a directory or device file and
reject it if it is, for consistency with file handling reject it if it is, for consistency with file handling

Просмотреть файл

@ -618,7 +618,8 @@ void parse_rcfile(FILE *rcstream
while ((len = getline(&buf, &n, rcstream)) > 0) { while ((len = getline(&buf, &n, rcstream)) > 0) {
char *ptr, *keyword, *option; char *ptr, *keyword, *option;
int set = 0, i; int set = 0;
size_t i;
/* Ignore the newline. */ /* Ignore the newline. */
buf[len - 1] = '\0'; buf[len - 1] = '\0';