summaryrefslogtreecommitdiff
path: root/usr.sbin
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 /usr.sbin
parent9492ac81c03196dcb3cc04a5cf2730b2b4cfc9ed (diff)
protos
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/config/ukc.h6
-rw-r--r--usr.sbin/rtsold/rtsold.c12
-rw-r--r--usr.sbin/spray/spray.c17
3 files changed, 14 insertions, 21 deletions
diff --git a/usr.sbin/config/ukc.h b/usr.sbin/config/ukc.h
index 6435af30d12..b47897475cb 100644
--- a/usr.sbin/config/ukc.h
+++ b/usr.sbin/config/ukc.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: ukc.h,v 1.10 2003/06/02 21:19:03 maja Exp $ */
+/* $OpenBSD: ukc.h,v 1.11 2003/06/25 21:10:12 deraadt Exp $ */
/*
* Copyright (c) 1999-2001 Mats O Jansson. All rights reserved.
@@ -134,7 +134,7 @@ int *get_extraloc(int);
char *get_pdevnames(int);
struct pdevinit *get_pdevinit(int);
-int more();
+int more(void);
void pnum(int);
void pdevnam(short);
void pdev(short);
@@ -153,7 +153,7 @@ void common_attr(char *, int, char);
void add_read(char *, char, char *, int, int *);
void add(char *, int, short, short);
-int config();
+int config(void);
void process_history(int, char *);
#define UC_CHANGE 'c'
diff --git a/usr.sbin/rtsold/rtsold.c b/usr.sbin/rtsold/rtsold.c
index 87150bd6abc..901d4132be2 100644
--- a/usr.sbin/rtsold/rtsold.c
+++ b/usr.sbin/rtsold/rtsold.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtsold.c,v 1.29 2003/05/15 14:40:53 itojun Exp $ */
+/* $OpenBSD: rtsold.c,v 1.30 2003/06/25 21:10:33 deraadt Exp $ */
/* $KAME: rtsold.c,v 1.57 2002/09/20 21:59:55 itojun Exp $ */
/*
@@ -104,9 +104,7 @@ static void rtsold_set_dump_file(int);
static void usage(char *);
int
-main(argc, argv)
- int argc;
- char **argv;
+main(int argc, char *argv[])
{
int s, ch, once = 0;
struct timeval *timeout;
@@ -437,7 +435,7 @@ bad:
}
void
-iflist_init()
+iflist_init(void)
{
struct ifinfo *ifi, *next;
@@ -528,7 +526,7 @@ make_packet(struct ifinfo *ifinfo)
}
static struct timeval *
-rtsol_check_timer()
+rtsol_check_timer(void)
{
static struct timeval returnval;
struct timeval now, rtsol_timer;
@@ -781,7 +779,7 @@ warnmsg(int priority, const char *func, const char *msg, ...)
* return a list of interfaces which is suitable to sending an RS.
*/
char **
-autoifprobe()
+autoifprobe(void)
{
static char **argv = NULL;
static int n = 0;
diff --git a/usr.sbin/spray/spray.c b/usr.sbin/spray/spray.c
index a3050e2baad..f030d77e6bc 100644
--- a/usr.sbin/spray/spray.c
+++ b/usr.sbin/spray/spray.c
@@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: spray.c,v 1.3 2002/06/02 06:42:29 deraadt Exp $
+ * $Id: spray.c,v 1.4 2003/06/25 21:10:19 deraadt Exp $
*/
#include <stdio.h>
@@ -41,8 +41,8 @@
#define SPRAYOVERHEAD 86
#endif
-void usage ();
-void print_xferstats ();
+void usage();
+void print_xferstats(int, int, double);
/* spray buffer */
char spray_buffer[SPRAYMAX];
@@ -53,9 +53,7 @@ struct timeval ONE_WAY = { 0, 0 };
struct timeval TIMEOUT = { 25, 0 };
int
-main(argc, argv)
- int argc;
- char **argv;
+main(int argc, char *argv[])
{
char *progname;
spraycumul host_stats;
@@ -190,10 +188,7 @@ main(argc, argv)
void
-print_xferstats(packets, packetlen, xfertime)
- int packets;
- int packetlen;
- double xfertime;
+print_xferstats(int packets, int packetlen, double xfertime)
{
int datalen;
double pps; /* packets per second */
@@ -215,7 +210,7 @@ print_xferstats(packets, packetlen, xfertime)
void
-usage ()
+usage(void)
{
fprintf(stderr, "usage: spray [-c count] [-l length] [-d delay] host\n");
exit(1);