From db39a5e80da291063ec5b8ceb4b19d34469a0a20 Mon Sep 17 00:00:00 2001
From: David Lawrence Ramsey <pooka109@gmail.com>
Date: Fri, 26 May 2006 13:38:49 +0000
Subject: [PATCH] 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
---
 ChangeLog    | 2 ++
 src/rcfile.c | 3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 20c87eec..091455b8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -260,6 +260,8 @@ CVS code -
   parse_rcfile()
 	- Properly generate an error if we've read in a syntax without
 	  any associated color commands. (DLR)
+	- Change variable i from an int to a size_t, for consistency.
+	  (DLR)
   do_rcfile()
 	- Check for the rcfile's being a directory or device file and
 	  reject it if it is, for consistency with file handling
diff --git a/src/rcfile.c b/src/rcfile.c
index 68c1d3e1..5996b334 100644
--- a/src/rcfile.c
+++ b/src/rcfile.c
@@ -618,7 +618,8 @@ void parse_rcfile(FILE *rcstream
 
     while ((len = getline(&buf, &n, rcstream)) > 0) {
 	char *ptr, *keyword, *option;
-	int set = 0, i;
+	int set = 0;
+	size_t i;
 
 	/* Ignore the newline. */
 	buf[len - 1] = '\0';
-- 
GitLab