From bc9ddcfcc843727e6fd073b8612c650a11282eb4 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 4 Oct 2014 22:02:56 +0200 Subject: [PATCH] lib/initend.c: rename a var to make gcc-4.6.x happy. --- lib/initend.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/initend.c b/lib/initend.c index 022be382..1515af92 100644 --- a/lib/initend.c +++ b/lib/initend.c @@ -213,7 +213,7 @@ parse_file(struct xbps_handle *xhp, const char *cwd, const char *path, bool nest FILE *fp; char tmppath[XBPS_MAXPATH] = {0}; size_t len, nlines = 0; - ssize_t read; + ssize_t nread; char *cfcwd, *line = NULL; int rv = 0; @@ -227,7 +227,7 @@ parse_file(struct xbps_handle *xhp, const char *cwd, const char *path, bool nest xbps_dbg_printf(xhp, "Parsing configuration file: %s\n", path); } - while ((read = getline(&line, &len, fp)) != -1) { + while ((nread = getline(&line, &len, fp)) != -1) { char *p, *k, *v; nlines++;