diff options
author | charnier <charnier@FreeBSD.org> | 1997-08-25 06:36:04 +0000 |
---|---|---|
committer | charnier <charnier@FreeBSD.org> | 1997-08-25 06:36:04 +0000 |
commit | eee8c72e1ae1db05598ec258788425d0a0019356 (patch) | |
tree | 65acdfc2d493a69e151349f2ade7a60760841a08 /usr.bin/vgrind/vfontedpr.c | |
parent | a4d82a959aeb47170a0450b2743fa5d8f9890393 (diff) | |
download | FreeBSD-src-eee8c72e1ae1db05598ec258788425d0a0019356.zip FreeBSD-src-eee8c72e1ae1db05598ec258788425d0a0019356.tar.gz |
Use err(3). Nm vgrind -> Nm in man page.
Diffstat (limited to 'usr.bin/vgrind/vfontedpr.c')
-rw-r--r-- | usr.bin/vgrind/vfontedpr.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/usr.bin/vgrind/vfontedpr.c b/usr.bin/vgrind/vfontedpr.c index b471044..fd812b0 100644 --- a/usr.bin/vgrind/vfontedpr.c +++ b/usr.bin/vgrind/vfontedpr.c @@ -32,22 +32,27 @@ */ #ifndef lint -static char copyright[] = +static const char copyright[] = "@(#) Copyright (c) 1980, 1993\n\ The Regents of the University of California. All rights reserved.\n"; #endif /* not lint */ #ifndef lint +#if 0 static char sccsid[] = "@(#)vfontedpr.c 8.1 (Berkeley) 6/6/93"; +#endif +static const char rcsid[] = + "$Id$"; #endif /* not lint */ #include <sys/types.h> #include <sys/stat.h> -#include <time.h> #include <ctype.h> +#include <err.h> +#include <stdio.h> #include <stdlib.h> #include <string.h> -#include <stdio.h> +#include <time.h> #include "pathnames.h" #include "extern.h" @@ -211,10 +216,8 @@ main(argc, argv) } /* open the file for input */ - if (freopen(argv[0], "r", stdin) == NULL) { - perror(argv[0]); - exit(1); - } + if (freopen(argv[0], "r", stdin) == NULL) + err(1, "%s", argv[0]); if (idx) printf("'ta 4i 4.25i 5.5iR\n'in .5i\n"); fname = argv[0]; |