diff options
author | charnier <charnier@FreeBSD.org> | 1997-10-01 06:30:02 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 1997-10-01 06:30:02 +0000 |
commit | c8ef4a7a48d8f5d12953d95267505428c7f529f0 (patch) | |
tree | 652d4b08e3d4b8184e9130c4f56d427b5c60029c /usr.sbin/mtree/compare.c | |
parent | 9e9c06cc6a32be0e300ed8612438b503e0b8998e (diff) | |
download | FreeBSD-src-c8ef4a7a48d8f5d12953d95267505428c7f529f0.zip FreeBSD-src-c8ef4a7a48d8f5d12953d95267505428c7f529f0.tar.gz |
Use err(3) instead of local redefinition.
Diffstat (limited to 'usr.sbin/mtree/compare.c')
-rw-r--r-- | usr.sbin/mtree/compare.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/usr.sbin/mtree/compare.c b/usr.sbin/mtree/compare.c index efe2429..72b00b9 100644 --- a/usr.sbin/mtree/compare.c +++ b/usr.sbin/mtree/compare.c @@ -32,22 +32,28 @@ */ #ifndef lint +#if 0 static char sccsid[] = "@(#)compare.c 8.1 (Berkeley) 6/6/93"; +#endif +static const char rcsid[] = + "$Id$"; #endif /* not lint */ #include <sys/param.h> #include <sys/stat.h> +#include <err.h> +#include <errno.h> #include <fcntl.h> #include <fts.h> -#include <errno.h> +#include <md5.h> #include <stdio.h> #include <time.h> #include <unistd.h> -#include <md5.h> #include "mtree.h" #include "extern.h" extern int uflag; +extern int lineno; static char *ftype __P((u_int)); @@ -283,7 +289,7 @@ rlink(name) register int len; if ((len = readlink(name, lbuf, sizeof(lbuf))) == -1) - err("%s: %s", name, strerror(errno)); + err(1, "line %d: %s", lineno, name); lbuf[len] = '\0'; return (lbuf); } |