diff options
Diffstat (limited to 'usr.bin/ranlib/ranlib.c')
-rw-r--r-- | usr.bin/ranlib/ranlib.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/usr.bin/ranlib/ranlib.c b/usr.bin/ranlib/ranlib.c index 9d1d8a1..c109139 100644 --- a/usr.bin/ranlib/ranlib.c +++ b/usr.bin/ranlib/ranlib.c @@ -50,10 +50,15 @@ static char sccsid[] = "@(#)ranlib.c 8.1 (Berkeley) 6/6/93"; #include <stdlib.h> #include <archive.h> +extern int build __P(( void )); +extern int touch __P(( void )); +void usage __P((void)); + CHDR chdr; u_int options; /* UNUSED -- keep open_archive happy */ char *archive; +int main(argc, argv) int argc; char **argv; @@ -77,13 +82,15 @@ main(argc, argv) if (!*argv) usage(); - for (eval = 0; archive = *argv++;) + for (eval = 0; (archive = *argv++); ) eval |= tflag ? touch() : build(); exit(eval); } -usage() +void +usage(void) { (void)fprintf(stderr, "usage: ranlib [-t] archive ...\n"); exit(1); } + |