summaryrefslogtreecommitdiff
path: root/usr.bin/compress/main.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2002-02-16 21:28:12 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2002-02-16 21:28:12 +0000
commit6d57a1a176004a7d8fc009cdcf760098f86e3263 (patch)
treeee423c619fad03813234b9362694a17f3a638f0b /usr.bin/compress/main.c
parentc707cb295fc3cac8d8feb343e949e0dcf71b8476 (diff)
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
Diffstat (limited to 'usr.bin/compress/main.c')
-rw-r--r--usr.bin/compress/main.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/usr.bin/compress/main.c b/usr.bin/compress/main.c
index dd6be0407f0..7f3da2cf249 100644
--- a/usr.bin/compress/main.c
+++ b/usr.bin/compress/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.16 2001/11/19 19:02:13 mpech Exp $ */
+/* $OpenBSD: main.c,v 1.17 2002/02/16 21:27:45 millert Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -41,7 +41,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)compress.c 8.2 (Berkeley) 1/7/94";
#else
-static char rcsid[] = "$OpenBSD: main.c,v 1.16 2001/11/19 19:02:13 mpech Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.17 2002/02/16 21:27:45 millert Exp $";
#endif
#endif /* not lint */
@@ -67,11 +67,11 @@ extern char *__progname;
struct compressor {
char *name;
char *suffix;
- int (*check_header) __P((int, struct stat *, const char *));
- void *(*open) __P((int, const char *, int));
- int (*read) __P((void *, char *, int));
- int (*write) __P((void *, const char *, int));
- int (*close) __P((void *));
+ int (*check_header)(int, struct stat *, const char *);
+ void *(*open)(int, const char *, int);
+ int (*read)(void *, char *, int);
+ int (*write)(void *, const char *, int);
+ int (*close)(void *);
} c_table[] = {
#define M_COMPRESS (&c_table[0])
{ "compress", ".Z", z_check_header, z_open, zread, zwrite, zclose },
@@ -80,14 +80,14 @@ struct compressor {
{ NULL }
};
-int permission __P((char *));
-void setfile __P((char *, struct stat *));
-void usage __P((void));
+int permission(char *);
+void setfile(char *, struct stat *);
+void usage(void);
int compress
- __P((const char *, const char *, struct compressor *, int));
+(const char *, const char *, struct compressor *, int);
int decompress
- __P((const char *, const char *, struct compressor *, int));
-struct compressor *check_method __P((int, const char *));
+(const char *, const char *, struct compressor *, int);
+struct compressor *check_method(int, const char *);
struct stat sb, osb;