summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2003-12-16 18:38:02 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2003-12-16 18:38:02 +0000
commitb01194e474010bc2193cc65af982ccbd2c6d2172 (patch)
tree25a769f5f92ed68af7e7f69f6007897743cb6d64 /usr.bin
parent18902937ad48df4603c51fad922a01a8fc69cbe1 (diff)
avoid name clash with newer libz; breaks on static archs
ok millert@
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/compress/main.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/compress/main.c b/usr.bin/compress/main.c
index d4028e2a43c..37b6590c4f5 100644
--- a/usr.bin/compress/main.c
+++ b/usr.bin/compress/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.48 2003/12/09 07:34:55 millert Exp $ */
+/* $OpenBSD: main.c,v 1.49 2003/12/16 18:38:01 henning Exp $ */
static const char copyright[] =
"@(#) Copyright (c) 1992, 1993\n\
@@ -37,7 +37,7 @@ static const char license[] =
#if 0
static char sccsid[] = "@(#)compress.c 8.2 (Berkeley) 1/7/94";
#else
-static const char main_rcsid[] = "$OpenBSD: main.c,v 1.48 2003/12/09 07:34:55 millert Exp $";
+static const char main_rcsid[] = "$OpenBSD: main.c,v 1.49 2003/12/16 18:38:01 henning Exp $";
#endif
#endif /* not lint */
@@ -99,9 +99,9 @@ const struct compressor null_method =
int permission(const char *);
void setfile(const char *, struct stat *);
__dead void usage(int);
-int compress(const char *, char *, const struct compressor *,
+int docompress(const char *, char *, const struct compressor *,
int, struct stat *);
-int decompress(const char *, char *, const struct compressor *,
+int dodecompress(const char *, char *, const struct compressor *,
int, struct stat *);
const struct compressor *check_method(int);
const char *check_suffix(const char *);
@@ -415,7 +415,7 @@ main(int argc, char *argv[])
if (verbose > 0 && !pipin && !list)
fprintf(stderr, "%s:\t", infile);
- error = (decomp ? decompress : compress)
+ error = (decomp ? dodecompress : docompress)
(infile, outfile, method, bits, entry->fts_statp);
switch (error) {
@@ -448,7 +448,7 @@ main(int argc, char *argv[])
}
int
-compress(const char *in, char *out, const struct compressor *method,
+docompress(const char *in, char *out, const struct compressor *method,
int bits, struct stat *sb)
{
u_char buf[Z_BUFSIZE];
@@ -561,7 +561,7 @@ check_method(int fd)
}
int
-decompress(const char *in, char *out, const struct compressor *method,
+dodecompress(const char *in, char *out, const struct compressor *method,
int bits, struct stat *sb)
{
u_char buf[Z_BUFSIZE];