summaryrefslogtreecommitdiffstats
path: root/bin/pax/ar_subs.c
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2002-02-02 06:48:10 +0000
committerimp <imp@FreeBSD.org>2002-02-02 06:48:10 +0000
commit50014e35418ca00d25ea852fc4f94acf80be4df3 (patch)
treef26db6e85c29b2244f601bdb366caa7f26a96c24 /bin/pax/ar_subs.c
parent3fc8df52e3856eeac730574d5ae122806dd1e1ef (diff)
downloadFreeBSD-src-50014e35418ca00d25ea852fc4f94acf80be4df3.zip
FreeBSD-src-50014e35418ca00d25ea852fc4f94acf80be4df3.tar.gz
o __P has been reoved
o Old-style K&R declarations have been converted to new C89 style o register has been removed o prototype for main() has been removed (gcc3 makes it an error) o int main(int argc, char *argv[]) is the preferred main definition. o Attempt to not break style(9) conformance for declarations more than they already are.
Diffstat (limited to 'bin/pax/ar_subs.c')
-rw-r--r--bin/pax/ar_subs.c49
1 files changed, 3 insertions, 46 deletions
diff --git a/bin/pax/ar_subs.c b/bin/pax/ar_subs.c
index f783489..8abab12 100644
--- a/bin/pax/ar_subs.c
+++ b/bin/pax/ar_subs.c
@@ -56,9 +56,9 @@ static const char rcsid[] =
#include "pax.h"
#include "extern.h"
-static void wr_archive __P((register ARCHD *, int is_app));
-static int get_arc __P((void));
-static int next_head __P((register ARCHD *));
+static void wr_archive(register ARCHD *, int is_app);
+static int get_arc(void);
+static int next_head(register ARCHD *);
extern sigset_t s_mask;
/*
@@ -75,13 +75,8 @@ u_long flcnt; /* number of files processed */
* (no pattern matches all).
*/
-#ifdef __STDC__
void
list(void)
-#else
-void
-list()
-#endif
{
register ARCHD *arcn;
register int res;
@@ -157,13 +152,8 @@ list()
* pattern(s) (no patterns extracts all members)
*/
-#ifdef __STDC__
void
extract(void)
-#else
-void
-extract()
-#endif
{
register ARCHD *arcn;
register int res;
@@ -368,15 +358,8 @@ extract()
* previously written archive.
*/
-#ifdef __STDC__
static void
wr_archive(register ARCHD *arcn, int is_app)
-#else
-static void
-wr_archive(arcn, is_app)
- register ARCHD *arcn;
- int is_app;
-#endif
{
register int res;
register int hlk;
@@ -578,13 +561,8 @@ wr_archive(arcn, is_app)
* over write existing files that it creates.
*/
-#ifdef __STDC__
void
append(void)
-#else
-void
-append()
-#endif
{
register ARCHD *arcn;
register int res;
@@ -719,13 +697,8 @@ append()
* write a new archive
*/
-#ifdef __STDC__
void
archive(void)
-#else
-void
-archive()
-#endif
{
ARCHD archd;
@@ -750,13 +723,8 @@ archive()
* (except the files are forced to be under the destination directory).
*/
-#ifdef __STDC__
void
copy(void)
-#else
-void
-copy()
-#endif
{
register ARCHD *arcn;
register int res;
@@ -1002,14 +970,8 @@ copy()
* the specs for rd_wrbuf() for more details)
*/
-#ifdef __STDC__
static int
next_head(register ARCHD *arcn)
-#else
-static int
-next_head(arcn)
- register ARCHD *arcn;
-#endif
{
register int ret;
register char *hdend;
@@ -1160,13 +1122,8 @@ next_head(arcn)
* 0 if archive found -1 otherwise
*/
-#ifdef __STDC__
static int
get_arc(void)
-#else
-static int
-get_arc()
-#endif
{
register int i;
register int hdsz = 0;
OpenPOWER on IntegriCloud