aboutsummaryrefslogtreecommitdiff
path: root/bin/rmail
diff options
context:
space:
mode:
authorSteve Price <steve@FreeBSD.org>1997-08-07 15:41:51 +0000
committerSteve Price <steve@FreeBSD.org>1997-08-07 15:41:51 +0000
commitab1733642c821daf18d0eb82f79a4850a57eedf6 (patch)
tree0dde2b905b885dcaa4fea66b3cd26a42b89230e6 /bin/rmail
parent41cc862cc225ebf9e8982cf7bd6915c4b8255b9b (diff)
downloadsrc-ab1733642c821daf18d0eb82f79a4850a57eedf6.tar.gz
src-ab1733642c821daf18d0eb82f79a4850a57eedf6.zip
#include <err.h> for err(3) call and replace extern reference to errno
with #include <errno.h>.
Notes
Notes: svn path=/head/; revision=27960
Diffstat (limited to 'bin/rmail')
-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 5e7d3661bbcd..c05a08ac13dd 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;