diff options
author | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-01-02 08:23:40 +0000 |
---|---|---|
committer | Xavier Santolaria <xsa@cvs.openbsd.org> | 2006-01-02 08:23:40 +0000 |
commit | 31768d988693cb066d662ccd1c6c2a4392edf852 (patch) | |
tree | b03dbf6baeb8e60108c0eadba18d8ffbc95099f0 /usr.bin/cvs | |
parent | 5a3968cd2c8a9496768dc4f31f78c70ffa5b2fac (diff) |
rename variable to fix shadow warning;
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r-- | usr.bin/cvs/util.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/cvs/util.c b/usr.bin/cvs/util.c index 5eaf61376b8..524fc10c7df 100644 --- a/usr.bin/cvs/util.c +++ b/usr.bin/cvs/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.66 2006/01/02 08:11:56 xsa Exp $ */ +/* $OpenBSD: util.c,v 1.67 2006/01/02 08:23:39 xsa Exp $ */ /* * Copyright (c) 2004 Jean-Francois Brousseau <jfb@openbsd.org> * All rights reserved. @@ -309,7 +309,7 @@ cvs_getargv(const char *line, char **argv, int argvlen) { size_t l; u_int i; - int argc, err; + int argc, error; char linebuf[256], qbuf[128], *lp, *cp, *arg; l = strlcpy(linebuf, line, sizeof(linebuf)); @@ -320,7 +320,7 @@ cvs_getargv(const char *line, char **argv, int argvlen) argc = 0; /* build the argument vector */ - err = 0; + error = 0; for (lp = linebuf; lp != NULL;) { if (*lp == '"') { /* double-quoted string */ @@ -332,13 +332,13 @@ cvs_getargv(const char *line, char **argv, int argvlen) lp++; if (*lp == '\0') { cvs_log(LP_ERR, "no terminating quote"); - err++; + error++; break; } qbuf[i++] = *lp++; if (i == sizeof(qbuf)) { - err++; + error++; break; } } @@ -355,7 +355,7 @@ cvs_getargv(const char *line, char **argv, int argvlen) } if (argc == argvlen) { - err++; + error++; break; } @@ -363,7 +363,7 @@ cvs_getargv(const char *line, char **argv, int argvlen) argc++; } - if (err != 0) { + if (error != 0) { /* ditch the argument vector */ for (i = 0; i < (u_int)argc; i++) xfree(argv[i]); |