summaryrefslogtreecommitdiffstats
path: root/usr.bin/diff/diffreg.c
diff options
context:
space:
mode:
authorray <ray@openbsd.org>2010-07-15 18:31:33 +0000
committerray <ray@openbsd.org>2010-07-15 18:31:33 +0000
commit6fc40daec7e48be96527da6ee716c53d0c51d211 (patch)
tree23ccdfe366223e470fe1502c3b965b90dac944ae /usr.bin/diff/diffreg.c
parentDie immediately if pread fails. It's a fatal error so treat it as (diff)
downloadwireguard-openbsd-6fc40daec7e48be96527da6ee716c53d0c51d211.tar.xz
wireguard-openbsd-6fc40daec7e48be96527da6ee716c53d0c51d211.zip
Remove unused arguments from check(). From cvs/rcs.
OK millert
Diffstat (limited to 'usr.bin/diff/diffreg.c')
-rw-r--r--usr.bin/diff/diffreg.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/diff/diffreg.c b/usr.bin/diff/diffreg.c
index f4e1eef9895..aed215507ae 100644
--- a/usr.bin/diff/diffreg.c
+++ b/usr.bin/diff/diffreg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diffreg.c,v 1.75 2010/07/14 22:15:57 ray Exp $ */
+/* $OpenBSD: diffreg.c,v 1.76 2010/07/15 18:31:33 ray Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
@@ -174,7 +174,7 @@ struct context_vec {
static FILE *opentemp(const char *);
static void output(char *, FILE *, char *, FILE *, int);
-static void check(char *, FILE *, char *, FILE *, int);
+static void check(FILE *, FILE *, int);
static void range(int, int, char *);
static void uni_range(int, int);
static void dump_context_vec(FILE *, FILE *, int);
@@ -433,7 +433,7 @@ diffreg(char *file1, char *file2, int flags)
ixold = xrealloc(ixold, len[0] + 2, sizeof(*ixold));
ixnew = xrealloc(ixnew, len[1] + 2, sizeof(*ixnew));
- check(file1, f1, file2, f2, flags);
+ check(f1, f2, flags);
output(file1, f1, file2, f2, flags);
if (ostdout != -1) {
int wstatus;
@@ -741,7 +741,7 @@ unravel(int p)
* 2. collect random access indexes to the two files
*/
static void
-check(char *file1, FILE *f1, char *file2, FILE *f2, int flags)
+check(FILE *f1, FILE *f2, int flags)
{
int i, j, jackpot, c, d;
long ctold, ctnew;