summaryrefslogtreecommitdiff
path: root/usr.bin/compress/compress.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-01-19 17:25:15 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-01-19 17:25:15 +0000
commit8647fb30db517a2beea3f0fb69b24bfae50895f7 (patch)
treeb2df876efcbd5fd5d2cdf20914a29efe14fc24a0 /usr.bin/compress/compress.c
parent1b2c3aa5b229a785da269b5167ca7ea1282d18e4 (diff)
Minor cleanups to make gcc -Wall happier.
Diffstat (limited to 'usr.bin/compress/compress.c')
-rw-r--r--usr.bin/compress/compress.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/compress/compress.c b/usr.bin/compress/compress.c
index 0f48dcbaf42..c2bbc26fcc7 100644
--- a/usr.bin/compress/compress.c
+++ b/usr.bin/compress/compress.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: compress.c,v 1.4 1997/01/17 07:12:29 millert Exp $ */
+/* $OpenBSD: compress.c,v 1.5 1997/01/19 17:25:11 millert Exp $ */
/* $NetBSD: compress.c,v 1.9 1995/03/26 09:44:38 glass Exp $ */
/*-
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)compress.c 8.2 (Berkeley) 1/7/94";
#else
-static char rcsid[] = "$OpenBSD: compress.c,v 1.4 1997/01/17 07:12:29 millert Exp $";
+static char rcsid[] = "$OpenBSD: compress.c,v 1.5 1997/01/19 17:25:11 millert Exp $";
#endif
#endif /* not lint */
@@ -202,7 +202,7 @@ compress(in, out, bits)
struct stat isb, sb;
FILE *ifp, *ofp;
int exists, isreg, oreg;
- u_char buf[1024];
+ u_char buf[BUFSIZ];
exists = !stat(out, &sb);
if (!force && exists && S_ISREG(sb.st_mode) && !permission(out))
@@ -292,7 +292,7 @@ decompress(in, out, bits)
struct stat sb;
FILE *ifp, *ofp;
int exists, isreg, oreg;
- u_char buf[1024];
+ u_char buf[BUFSIZ];
exists = !stat(out, &sb);
if (!force && exists && S_ISREG(sb.st_mode) && !permission(out))