diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-07-02 21:04:11 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-07-02 21:04:11 +0000 |
commit | c7d032fc4ac7d7924b20e1fea418272346d8c78c (patch) | |
tree | fd85b5bf62e92ffd1fee5c23d0b97910c3a67fb7 /usr.bin/file | |
parent | 27d9189e4074c4648710da3447660f62aaf79e4c (diff) |
protos
Diffstat (limited to 'usr.bin/file')
-rw-r--r-- | usr.bin/file/file.c | 8 | ||||
-rw-r--r-- | usr.bin/file/file.h | 5 | ||||
-rw-r--r-- | usr.bin/file/tar.h | 14 |
3 files changed, 8 insertions, 19 deletions
diff --git a/usr.bin/file/file.c b/usr.bin/file/file.c index 9f388117213..a51952350bf 100644 --- a/usr.bin/file/file.c +++ b/usr.bin/file/file.c @@ -1,4 +1,4 @@ -/* $OpenBSD: file.c,v 1.12 2003/06/13 18:31:14 deraadt Exp $ */ +/* $OpenBSD: file.c,v 1.13 2003/07/02 21:04:09 deraadt Exp $ */ /* * file - find type of a file or files - main program. @@ -31,7 +31,7 @@ */ #ifndef lint -static char *moduleid = "$OpenBSD: file.c,v 1.12 2003/06/13 18:31:14 deraadt Exp $"; +static char *moduleid = "$OpenBSD: file.c,v 1.13 2003/07/02 21:04:09 deraadt Exp $"; #endif /* lint */ #include <stdio.h> @@ -94,9 +94,7 @@ static short byteconv2(int, int, int); * main - parse arguments and handle options */ int -main(argc, argv) -int argc; -char *argv[]; +main(int argc, char *argv[]) { int c; int check = 0, didsomefiles = 0, errflg = 0, ret = 0, app = 0; diff --git a/usr.bin/file/file.h b/usr.bin/file/file.h index 0f02bdf4087..c9586b3aaaa 100644 --- a/usr.bin/file/file.h +++ b/usr.bin/file/file.h @@ -1,4 +1,4 @@ -/* $OpenBSD: file.h,v 1.13 2003/06/13 18:31:14 deraadt Exp $ */ +/* $OpenBSD: file.h,v 1.14 2003/07/02 21:04:10 deraadt Exp $ */ /* * file.h - definitions for file(1) program @@ -147,4 +147,7 @@ extern char *sys_errlist[]; #define MAXPATHLEN 512 #endif +int pipe2file(int, void *, size_t); +void error(const char *, ...); + #endif /* __file_h__ */ diff --git a/usr.bin/file/tar.h b/usr.bin/file/tar.h index 9246a133bd0..82863d4dffc 100644 --- a/usr.bin/file/tar.h +++ b/usr.bin/file/tar.h @@ -1,4 +1,4 @@ -/* $OpenBSD: tar.h,v 1.3 1997/02/09 23:58:37 millert Exp $ */ +/* $OpenBSD: tar.h,v 1.4 2003/07/02 21:04:10 deraadt Exp $ */ /* * Header file for public domain tar (tape archive) program. @@ -166,15 +166,3 @@ TAR_EXTERN struct link *linklist; /* Points to first link in list */ * Error recovery stuff */ TAR_EXTERN char read_error_flag; - - -/* - * Declarations of functions available to the world. - */ -/*LINTLIBRARY*/ -union record *findrec(); -void userec(); -union record *endofrecs(); -void anno(); -#define annorec(stream, msg) anno(stream, msg, 0) /* Cur rec */ -#define annofile(stream, msg) anno(stream, msg, 1) /* Saved rec */ |