lib/initend.c: rename a var to make gcc-4.6.x happy.
This commit is contained in:
@@ -213,7 +213,7 @@ parse_file(struct xbps_handle *xhp, const char *cwd, const char *path, bool nest
|
|||||||
FILE *fp;
|
FILE *fp;
|
||||||
char tmppath[XBPS_MAXPATH] = {0};
|
char tmppath[XBPS_MAXPATH] = {0};
|
||||||
size_t len, nlines = 0;
|
size_t len, nlines = 0;
|
||||||
ssize_t read;
|
ssize_t nread;
|
||||||
char *cfcwd, *line = NULL;
|
char *cfcwd, *line = NULL;
|
||||||
int rv = 0;
|
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);
|
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;
|
char *p, *k, *v;
|
||||||
|
|
||||||
nlines++;
|
nlines++;
|
||||||
|
Reference in New Issue
Block a user