diff options
author | markm <markm@FreeBSD.org> | 2002-04-28 11:59:43 +0000 |
---|---|---|
committer | markm <markm@FreeBSD.org> | 2002-04-28 11:59:43 +0000 |
commit | 6e62811ca30b49afadd571304d15357244bd77af (patch) | |
tree | f88f75abadd5ac367b1a0dfc4ad6b65b65765bfb /usr.bin/ranlib/touch.c | |
parent | 679fd48b5c4e4d6775ad4fa1c131410cd1e3fc6e (diff) | |
download | FreeBSD-src-6e62811ca30b49afadd571304d15357244bd77af.zip FreeBSD-src-6e62811ca30b49afadd571304d15357244bd77af.tar.gz |
ANSIfy functions, and move extern declarations into a shared header
where ${DEITY} intended them to be.
Diffstat (limited to 'usr.bin/ranlib/touch.c')
-rw-r--r-- | usr.bin/ranlib/touch.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/usr.bin/ranlib/touch.c b/usr.bin/ranlib/touch.c index aca8ee6..0ede6b3 100644 --- a/usr.bin/ranlib/touch.c +++ b/usr.bin/ranlib/touch.c @@ -38,11 +38,13 @@ #if 0 static char sccsid[] = "@(#)touch.c 8.1 (Berkeley) 6/6/93"; #endif -static const char rcsid[] = - "$FreeBSD$"; #endif /* not lint */ #include <sys/types.h> +__FBSDID("$FreeBSD$"); + +#include <sys/types.h> + #include <ar.h> #include <dirent.h> #include <err.h> @@ -52,12 +54,10 @@ static const char rcsid[] = #include <string.h> #include <time.h> #include <unistd.h> -#include "archive.h" -extern CHDR chdr; /* converted header */ -extern char *archive; /* archive name */ +#include "archive.h" +#include "extern.h" -extern void error( char * ); void settime( int ); int touch( void ); @@ -79,8 +79,7 @@ touch(void) } void -settime(afd) - int afd; +settime(int afd) { struct ar_hdr *hdr; off_t size; |