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/misc.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/misc.c')
-rw-r--r-- | usr.bin/ranlib/misc.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/usr.bin/ranlib/misc.c b/usr.bin/ranlib/misc.c index 600e49e..97e970d 100644 --- a/usr.bin/ranlib/misc.c +++ b/usr.bin/ranlib/misc.c @@ -35,17 +35,22 @@ */ #ifndef lint +#if 0 static char sccsid[] = "@(#)misc.c 8.1 (Berkeley) 6/6/93"; +#endif +static const char rcsid[] = + "$Id$"; #endif /* not lint */ #include <sys/param.h> #include <sys/signal.h> +#include <err.h> #include <errno.h> -#include <unistd.h> #include <signal.h> #include <stdio.h> #include <stdlib.h> #include <string.h> +#include <unistd.h> #include "pathnames.h" extern char *archive; /* archive name */ @@ -105,6 +110,5 @@ void error(name) char *name; { - (void)fprintf(stderr, "ranlib: %s: %s\n", name, strerror(errno)); - exit(1); + err(1, "%s", name); } |