diff options
author | steve <steve@FreeBSD.org> | 1997-08-07 15:41:51 +0000 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1997-08-07 15:41:51 +0000 |
commit | f465f4c450d9417a6b0ae2dd4e064cf535b36c7d (patch) | |
tree | 8ff481db2bf2acc4dfef9e1cc63b3fb0df1ee8ba /bin/rmail | |
parent | ab9afdf00d2bdcc41c500305c8c7bf03870da530 (diff) | |
download | FreeBSD-src-f465f4c450d9417a6b0ae2dd4e064cf535b36c7d.zip FreeBSD-src-f465f4c450d9417a6b0ae2dd4e064cf535b36c7d.tar.gz |
#include <err.h> for err(3) call and replace extern reference to errno
with #include <errno.h>.
Diffstat (limited to 'bin/rmail')
-rw-r--r-- | bin/rmail/rmail.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/bin/rmail/rmail.c b/bin/rmail/rmail.c index 5e7d366..c05a08a 100644 --- a/bin/rmail/rmail.c +++ b/bin/rmail/rmail.c @@ -30,17 +30,15 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: rmail.c,v 1.11 1997/06/06 06:46:27 charnier Exp $ + * from: @(#)rmail.c 8.1 (Berkeley) 5/31/93 */ #ifndef lint -static char const copyright[] = +static const char copyright[] = "@(#) Copyright (c) 1988, 1993\n\ The Regents of the University of California. All rights reserved.\n"; -#endif /* not lint */ - -#ifndef lint -static char const sccsid[] = "@(#)rmail.c 8.1 (Berkeley) 5/31/93"; +static const char rcsid[] = + "$Id: rmail.c,v 1.12 1997/06/30 11:03:31 charnier Exp $"; #endif /* not lint */ /* @@ -72,6 +70,8 @@ static char const sccsid[] = "@(#)rmail.c 8.1 (Berkeley) 5/31/93"; #include <sys/wait.h> #include <ctype.h> +#include <err.h> +#include <errno.h> #include <fcntl.h> #include <paths.h> #include <stdio.h> @@ -87,8 +87,6 @@ main(argc, argv) int argc; char *argv[]; { - extern char *optarg; - extern int errno, optind; FILE *fp; struct stat sb; size_t fplen, fptlen, len; |