summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-10 22:24:19 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-10 22:24:19 +0000
commita3be04603ba565ffbc2e8c6faa1532b75e9e0ca9 (patch)
treea4f1655068d7318ee3eedeb88d52c15f49d2df12 /usr.sbin
parent9faa288fe9517ea8524204f90bfa36d1aa74a828 (diff)
protos in scope
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/rmt/rmt.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/usr.sbin/rmt/rmt.c b/usr.sbin/rmt/rmt.c
index 2be7ebd597b..a064ba14969 100644
--- a/usr.sbin/rmt/rmt.c
+++ b/usr.sbin/rmt/rmt.c
@@ -39,7 +39,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)rmt.c 5.6 (Berkeley) 6/1/90";*/
-static char rcsid[] = "$Id: rmt.c,v 1.1 1995/10/18 08:48:05 deraadt Exp $";
+static char rcsid[] = "$Id: rmt.c,v 1.2 1996/08/10 22:24:18 deraadt Exp $";
#endif /* not lint */
/*
@@ -49,8 +49,11 @@ static char rcsid[] = "$Id: rmt.c,v 1.1 1995/10/18 08:48:05 deraadt Exp $";
#include <sgtty.h>
#include <sys/types.h>
#include <sys/socket.h>
+#include <sys/file.h>
#include <sys/stat.h>
#include <sys/mtio.h>
+#include <unistd.h>
+#include <stdlib.h>
#include <errno.h>
#include <string.h>
@@ -71,6 +74,10 @@ FILE *debug;
#define DEBUG1(f,a) if (debug) fprintf(debug, f, a)
#define DEBUG2(f,a1,a2) if (debug) fprintf(debug, f, a1, a2)
+void getstring __P((char *));
+void error __P((int));
+
+int
main(argc, argv)
int argc;
char **argv;
@@ -188,6 +195,7 @@ ioerror:
goto top;
}
+void
getstring(bp)
char *bp;
{
@@ -226,6 +234,7 @@ checkbuf(record, size)
return (record);
}
+void
error(num)
int num;
{