summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
diff options
context:
space:
mode:
authorJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-12-28 20:39:16 +0000
committerJean-Francois Brousseau <jfb@cvs.openbsd.org>2004-12-28 20:39:16 +0000
commitb4c190a2dd37528ef5de04cb65b4b98303f511a7 (patch)
tree0267969728ff2424e70762359a7c224bfd484208 /usr.bin/cvs
parent422e89f36063868aea3b35102adfe6c947969cae (diff)
rename parameters to avoid shadowing global declarations
Diffstat (limited to 'usr.bin/cvs')
-rw-r--r--usr.bin/cvs/diff.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/cvs/diff.c b/usr.bin/cvs/diff.c
index 93d9bbf2154..d2e3bb15853 100644
--- a/usr.bin/cvs/diff.c
+++ b/usr.bin/cvs/diff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff.c,v 1.14 2004/12/28 19:51:07 jfb Exp $ */
+/* $OpenBSD: diff.c,v 1.15 2004/12/28 20:39:15 jfb Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
* All rights reserved.
@@ -728,12 +728,12 @@ files_differ(FILE *f1, FILE *f2)
char *
-splice(char *dir, char *file)
+splice(char *dir, char *filename)
{
char *tail, *buf;
- if ((tail = strrchr(file, '/')) == NULL)
- tail = file;
+ if ((tail = strrchr(filename, '/')) == NULL)
+ tail = filename;
else
tail++;
asprintf(&buf, "%s/%s", dir, tail);
@@ -1149,17 +1149,17 @@ uni_range(int a, int b)
}
static char *
-preadline(int fd, size_t len, off_t off)
+preadline(int fd, size_t rlen, off_t off)
{
char *line;
ssize_t nr;
- line = malloc(len + 1);
+ line = malloc(rlen + 1);
if (line == NULL) {
cvs_log(LP_ERRNO, "failed to allocate line");
return (NULL);
}
- if ((nr = pread(fd, line, len, off)) < 0) {
+ if ((nr = pread(fd, line, rlen, off)) < 0) {
cvs_log(LP_ERRNO, "preadline failed");
return (NULL);
}