summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorsteve <steve@FreeBSD.org>1997-08-07 15:41:51 +0000
committersteve <steve@FreeBSD.org>1997-08-07 15:41:51 +0000
commitf465f4c450d9417a6b0ae2dd4e064cf535b36c7d (patch)
tree8ff481db2bf2acc4dfef9e1cc63b3fb0df1ee8ba /bin
parentab9afdf00d2bdcc41c500305c8c7bf03870da530 (diff)
downloadFreeBSD-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')
-rw-r--r--bin/rmail/rmail.c14
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;
OpenPOWER on IntegriCloud