diff options
author | charnier <charnier@FreeBSD.org> | 1997-08-04 06:48:25 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 1997-08-04 06:48:25 +0000 |
commit | ba2544a6f0b91693130f57914790cc17ca424abf (patch) | |
tree | c45d08afc552bbe8240896d9499de1b331b9990e /usr.bin/ranlib/touch.c | |
parent | e7d0804666a37dfc6f4cdf20a24624f300e5bf9e (diff) | |
download | FreeBSD-src-ba2544a6f0b91693130f57914790cc17ca424abf.zip FreeBSD-src-ba2544a6f0b91693130f57914790cc17ca424abf.tar.gz |
Use err(3). Use #include "" instead of <> for local headers.
Diffstat (limited to 'usr.bin/ranlib/touch.c')
-rw-r--r-- | usr.bin/ranlib/touch.c | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/usr.bin/ranlib/touch.c b/usr.bin/ranlib/touch.c index 68a86a4..93670b3 100644 --- a/usr.bin/ranlib/touch.c +++ b/usr.bin/ranlib/touch.c @@ -35,19 +35,24 @@ */ #ifndef lint +#if 0 static char sccsid[] = "@(#)touch.c 8.1 (Berkeley) 6/6/93"; +#endif +static const char rcsid[] = + "$Id$"; #endif /* not lint */ #include <sys/types.h> -#include <fcntl.h> +#include <ar.h> #include <dirent.h> +#include <err.h> +#include <fcntl.h> #include <ranlib.h> -#include <ar.h> -#include <time.h> -#include <unistd.h> #include <stdio.h> #include <string.h> -#include <archive.h> +#include <time.h> +#include <unistd.h> +#include "archive.h" extern CHDR chdr; /* converted header */ extern char *archive; /* archive name */ @@ -65,8 +70,7 @@ touch(void) if (!get_arobj(afd) || strncmp(RANLIBMAG, chdr.name, sizeof(RANLIBMAG) - 1)) { - (void)fprintf(stderr, - "ranlib: %s: no symbol table.\n", archive); + warnx("%s: no symbol table", archive); return(1); } settime(afd); |