Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/pax remove some old cruft.
details: https://anonhg.NetBSD.org/src/rev/f2a522c27646
branches: trunk
changeset: 477577:f2a522c27646
user: mrg <mrg%NetBSD.org@localhost>
date: Fri Oct 22 10:38:40 1999 +0000
description:
remove some old cruft.
diffstat:
bin/pax/buf_subs.c | 16 ++--------------
bin/pax/file_subs.c | 9 ++-------
bin/pax/gen_subs.c | 9 ++-------
3 files changed, 6 insertions(+), 28 deletions(-)
diffs (111 lines):
diff -r dc6f7d5ec91e -r f2a522c27646 bin/pax/buf_subs.c
--- a/bin/pax/buf_subs.c Fri Oct 22 10:30:08 1999 +0000
+++ b/bin/pax/buf_subs.c Fri Oct 22 10:38:40 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: buf_subs.c,v 1.9 1998/02/03 07:48:36 mycroft Exp $ */
+/* $NetBSD: buf_subs.c,v 1.10 1999/10/22 10:38:40 mrg Exp $ */
/*-
* Copyright (c) 1992 Keith Muller.
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)buf_subs.c 8.2 (Berkeley) 4/18/94";
#else
-__RCSID("$NetBSD: buf_subs.c,v 1.9 1998/02/03 07:48:36 mycroft Exp $");
+__RCSID("$NetBSD: buf_subs.c,v 1.10 1999/10/22 10:38:40 mrg Exp $");
#endif
#endif /* not lint */
@@ -239,9 +239,6 @@
int res;
off_t cnt;
-#if __GNUC__ /* XXX work around lame compiler problem (gcc 2.7.2) */
- (void)&cnt;
-#endif
if (exit_val != 0) {
tty_warn(0, "Cannot append to an archive that may have flaws.");
return(-1);
@@ -446,10 +443,6 @@
off_t cnt;
off_t skipped = 0;
-#if __GNUC__ /* XXX work around lame compiler problem (gcc 2.7.2) */
- (void)&cnt;
-#endif
-
/*
* consume what data we have in the buffer. If we have to move foward
* whole records, we call the low level skip function to see if we can
@@ -867,11 +860,6 @@
int sz = MINFBSZ;
struct stat sb;
-#ifdef __GNUC__
- /* This outrageous construct just to shut up a GCC warning. */
- (void) &cpcnt;
-#endif
-
/*
* check for holes in the source file. If none, we will use regular
* write instead of file write.
diff -r dc6f7d5ec91e -r f2a522c27646 bin/pax/file_subs.c
--- a/bin/pax/file_subs.c Fri Oct 22 10:30:08 1999 +0000
+++ b/bin/pax/file_subs.c Fri Oct 22 10:38:40 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: file_subs.c,v 1.10 1998/02/28 15:52:04 mrg Exp $ */
+/* $NetBSD: file_subs.c,v 1.11 1999/10/22 10:38:41 mrg Exp $ */
/*-
* Copyright (c) 1992 Keith Muller.
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)file_subs.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: file_subs.c,v 1.10 1998/02/28 15:52:04 mrg Exp $");
+__RCSID("$NetBSD: file_subs.c,v 1.11 1999/10/22 10:38:41 mrg Exp $");
#endif
#endif /* not lint */
@@ -1020,11 +1020,6 @@
char tbuf[FILEBLK];
struct stat sb;
-#ifdef __GNUC__
- /* This outrageous construct just to shut up a GCC warning. */
- (void) &cpcnt;
-#endif
-
if (fd < 0) {
/*
* hmm, no fd, should never happen. well no crc then.
diff -r dc6f7d5ec91e -r f2a522c27646 bin/pax/gen_subs.c
--- a/bin/pax/gen_subs.c Fri Oct 22 10:30:08 1999 +0000
+++ b/bin/pax/gen_subs.c Fri Oct 22 10:38:40 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: gen_subs.c,v 1.15 1999/08/24 07:57:06 tron Exp $ */
+/* $NetBSD: gen_subs.c,v 1.16 1999/10/22 10:38:41 mrg Exp $ */
/*-
* Copyright (c) 1992 Keith Muller.
@@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)gen_subs.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: gen_subs.c,v 1.15 1999/08/24 07:57:06 tron Exp $");
+__RCSID("$NetBSD: gen_subs.c,v 1.16 1999/10/22 10:38:41 mrg Exp $");
#endif
#endif /* not lint */
@@ -410,11 +410,6 @@
char *stop;
u_quad_t tval = 0;
-#ifdef __GNUC__
- /* This outrageous construct just to shut up a GCC warning. */
- (void) &tval;
-#endif
-
stop = str + len;
/*
Home |
Main Index |
Thread Index |
Old Index