summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/diff.c
diff options
context:
space:
mode:
authorjfb <jfb@openbsd.org>2005-05-22 17:48:54 +0000
committerjfb <jfb@openbsd.org>2005-05-22 17:48:54 +0000
commitbe23eb8ebfb7b618081c182417314fde5260ff97 (patch)
tree8a6ebd7adb89a2c999014770ef8b643b46ec2a51 /usr.bin/cvs/diff.c
parentunused variable (diff)
downloadwireguard-openbsd-be23eb8ebfb7b618081c182417314fde5260ff97.tar.xz
wireguard-openbsd-be23eb8ebfb7b618081c182417314fde5260ff97.zip
remove ununsed code
Diffstat (limited to 'usr.bin/cvs/diff.c')
-rw-r--r--usr.bin/cvs/diff.c34
1 files changed, 6 insertions, 28 deletions
diff --git a/usr.bin/cvs/diff.c b/usr.bin/cvs/diff.c
index a1b7e76af9f..863ef2c04f9 100644
--- a/usr.bin/cvs/diff.c
+++ b/usr.bin/cvs/diff.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: diff.c,v 1.34 2005/05/20 20:00:53 joris Exp $ */
+/* $OpenBSD: diff.c,v 1.35 2005/05/22 17:48:54 jfb Exp $ */
/*
* Copyright (C) Caldera International Inc. 2001-2002.
* All rights reserved.
@@ -128,7 +128,6 @@
#include <sys/param.h>
#include <sys/stat.h>
-#include <sys/wait.h>
#include <err.h>
#include <errno.h>
@@ -207,18 +206,11 @@ struct diff_arg {
};
-struct excludes {
- char *pattern;
- struct excludes *next;
-};
-
-
-char *splice(char *, char *);
-int cvs_diff_options(char *, int, char **, int *);
-int cvs_diffreg(const char *, const char *);
-int cvs_diff_file(struct cvs_file *, void *);
-int cvs_diff_sendflags(struct cvsroot *);
-int cvs_diff_cleanup(void);
+int cvs_diff_options (char *, int, char **, int *);
+int cvs_diffreg (const char *, const char *);
+int cvs_diff_file (CVSFILE *, void *);
+int cvs_diff_sendflags (struct cvsroot *);
+int cvs_diff_cleanup (void);
static void output(const char *, FILE *, const char *, FILE *);
static void check(FILE *, FILE *);
@@ -771,20 +763,6 @@ files_differ(FILE *f1, FILE *f2)
}
}
-
-char *
-splice(char *dir, char *filename)
-{
- char *tail, *buf;
-
- if ((tail = strrchr(filename, '/')) == NULL)
- tail = filename;
- else
- tail++;
- asprintf(&buf, "%s/%s", dir, tail);
- return (buf);
-}
-
static int
prepare(int i, FILE *fd, off_t filesize)
{