summaryrefslogtreecommitdiff
path: root/bin/cp/cp.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1996-12-14 12:18:28 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1996-12-14 12:18:28 +0000
commit28e461d672204f54b8eb68a590d36c23a32f9574 (patch)
tree3e3c51ee95dec9ad261710930b40e4426389cbb8 /bin/cp/cp.c
parentfb3035e3379d9258753316427b03a4d8d0676d07 (diff)
-Wall'ing.
Diffstat (limited to 'bin/cp/cp.c')
-rw-r--r--bin/cp/cp.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/bin/cp/cp.c b/bin/cp/cp.c
index 7b77747aa3e..fc3e45047e8 100644
--- a/bin/cp/cp.c
+++ b/bin/cp/cp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cp.c,v 1.4 1996/10/28 02:55:05 tholo Exp $ */
+/* $OpenBSD: cp.c,v 1.5 1996/12/14 12:17:38 mickey Exp $ */
/* $NetBSD: cp.c,v 1.14 1995/09/07 06:14:51 jtc Exp $ */
/*
@@ -47,7 +47,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)cp.c 8.5 (Berkeley) 4/29/95";
#else
-static char rcsid[] = "$OpenBSD: cp.c,v 1.4 1996/10/28 02:55:05 tholo Exp $";
+static char rcsid[] = "$OpenBSD: cp.c,v 1.5 1996/12/14 12:17:38 mickey Exp $";
#endif
#endif /* not lint */
@@ -258,7 +258,9 @@ copy(argv, type, fts_options)
FTSENT *curr;
int base, dne, nlen, rval;
char *p, *target_mid;
-
+#ifdef lint
+ base = 0;
+#endif
if ((ftsp = fts_open(argv, fts_options, mastercmp)) == NULL)
err(1, NULL);
for (rval = 0; (curr = fts_read(ftsp)) != NULL;) {