summaryrefslogtreecommitdiff
path: root/libexec
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-25 21:11:26 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-06-25 21:11:26 +0000
commit050c7e8a628282e2ab453bedf3d05f9d9bb7e488 (patch)
treecb48f586e879393fcfa3bcb4618385cd2660ca89 /libexec
parent9492ac81c03196dcb3cc04a5cf2730b2b4cfc9ed (diff)
protos
Diffstat (limited to 'libexec')
-rw-r--r--libexec/getty/main.c9
-rw-r--r--libexec/tftpd/tftpd.c14
2 files changed, 10 insertions, 13 deletions
diff --git a/libexec/getty/main.c b/libexec/getty/main.c
index 420e0990d64..d66e58ea8c9 100644
--- a/libexec/getty/main.c
+++ b/libexec/getty/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.25 2003/06/02 19:38:24 millert Exp $ */
+/* $OpenBSD: main.c,v 1.26 2003/06/25 21:11:10 deraadt Exp $ */
/*-
* Copyright (c) 1980, 1993
@@ -37,7 +37,7 @@ static char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)main.c 8.1 (Berkeley) 6/20/93";*/
-static char rcsid[] = "$OpenBSD: main.c,v 1.25 2003/06/02 19:38:24 millert Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.26 2003/06/25 21:11:10 deraadt Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -89,8 +89,7 @@ struct utsname kerninfo;
char name[MAXLOGNAME];
char dev[] = _PATH_DEV;
char ttyn[32];
-char *portselector();
-char *ttyname();
+char *portselector(void);
#define OBUFSIZ 128
#define TABBUFSIZ 512
@@ -265,8 +264,6 @@ main(int argc, char *argv[])
exit(1);
}
if (AB) {
- extern char *autobaud();
-
tname = autobaud();
continue;
}
diff --git a/libexec/tftpd/tftpd.c b/libexec/tftpd/tftpd.c
index d8ab453c8a5..a25d898e86f 100644
--- a/libexec/tftpd/tftpd.c
+++ b/libexec/tftpd/tftpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tftpd.c,v 1.27 2003/06/02 19:38:25 millert Exp $ */
+/* $OpenBSD: tftpd.c,v 1.28 2003/06/25 21:11:25 deraadt Exp $ */
/*
* Copyright (c) 1983 Regents of the University of California.
@@ -37,7 +37,7 @@ char copyright[] =
#ifndef lint
/*static char sccsid[] = "from: @(#)tftpd.c 5.13 (Berkeley) 2/26/91";*/
-static char rcsid[] = "$OpenBSD: tftpd.c,v 1.27 2003/06/02 19:38:25 millert Exp $";
+static char rcsid[] = "$OpenBSD: tftpd.c,v 1.28 2003/06/25 21:11:25 deraadt Exp $";
#endif /* not lint */
/*
@@ -95,9 +95,9 @@ int sendfile(struct formats *pf);
struct formats {
char *f_mode;
- int (*f_validate)();
- int (*f_send)();
- int (*f_recv)();
+ int (*f_validate)(char *, int);
+ int (*f_send)(struct formats *);
+ int (*f_recv)(struct formats *);
int f_convert;
} formats[] = {
{ "netascii", validate_access, sendfile, recvfile, 1 },
@@ -420,7 +420,7 @@ timer(int signo)
int
sendfile(struct formats *pf)
{
- struct tftphdr *dp, *r_init();
+ struct tftphdr *dp, *r_init(void);
struct tftphdr *ap; /* ack packet */
volatile unsigned short block = 1;
int size, n;
@@ -491,7 +491,7 @@ justquit(int signo)
int
recvfile(struct formats *pf)
{
- struct tftphdr *dp, *w_init();
+ struct tftphdr *dp, *w_init(void);
struct tftphdr *ap; /* ack buffer */
volatile unsigned short block = 0;
int n, size;