summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-05-31 10:11:15 +0000
committerJun-ichiro itojun Hagino <itojun@cvs.openbsd.org>2002-05-31 10:11:15 +0000
commit8be8ff7e8d00a9f4c84fa4f9e62223408fd96b24 (patch)
treebc46e27a67235cec0197d4d2af4702231ed0dadf
parent4d373c4a676771041c805b6a2583e193324e6f8d (diff)
function prototypes shoulnd't carry variable name
-rw-r--r--usr.sbin/rtsold/rtsold.c16
-rw-r--r--usr.sbin/rtsold/rtsold.h22
2 files changed, 18 insertions, 20 deletions
diff --git a/usr.sbin/rtsold/rtsold.c b/usr.sbin/rtsold/rtsold.c
index 26e2888396d..26ee569b51c 100644
--- a/usr.sbin/rtsold/rtsold.c
+++ b/usr.sbin/rtsold/rtsold.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtsold.c,v 1.19 2002/05/31 09:53:26 deraadt Exp $ */
+/* $OpenBSD: rtsold.c,v 1.20 2002/05/31 10:11:14 itojun Exp $ */
/* $KAME: rtsold.c,v 1.32 2001/07/09 22:34:07 itojun Exp $ */
/*
@@ -88,19 +88,17 @@ static int mobile_node = 0;
volatile sig_atomic_t do_dump;
static char *dumpfilename = "/var/run/rtsold.dump"; /* XXX: should be configurable */
-static int ifconfig(char *ifname);
+static int ifconfig(char *);
#if 0
-static int ifreconfig(char *ifname);
+static int ifreconfig(char *);
#endif
-static int make_packet(struct ifinfo *ifinfo);
+static int make_packet(struct ifinfo *);
static struct timeval *rtsol_check_timer(void);
-static void TIMEVAL_ADD(struct timeval *a, struct timeval *b,
- struct timeval *result);
-static void TIMEVAL_SUB(struct timeval *a, struct timeval *b,
- struct timeval *result);
+static void TIMEVAL_ADD(struct timeval *, struct timeval *, struct timeval *);
+static void TIMEVAL_SUB(struct timeval *, struct timeval *, struct timeval *);
static void rtsold_set_dump_file(void);
-static void usage(char *progname);
+static void usage(char *);
static char **autoifprobe(void);
int
diff --git a/usr.sbin/rtsold/rtsold.h b/usr.sbin/rtsold/rtsold.h
index 15dd80bdf7c..3e4c22cf484 100644
--- a/usr.sbin/rtsold/rtsold.h
+++ b/usr.sbin/rtsold/rtsold.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: rtsold.h,v 1.8 2002/02/17 19:42:39 millert Exp $ */
+/* $OpenBSD: rtsold.h,v 1.9 2002/05/31 10:11:14 itojun Exp $ */
/* $KAME: rtsold.h,v 1.11 2000/10/10 06:18:04 itojun Exp $ */
/*
@@ -63,27 +63,27 @@ struct ifinfo {
extern struct timeval tm_max;
extern int dflag;
struct ifinfo *find_ifinfo(int ifindex);
-void rtsol_timer_update(struct ifinfo *ifinfo);
+void rtsol_timer_update(struct ifinfo *);
extern void warnmsg(int, const char *, const char *, ...)
__attribute__((__format__(__printf__, 3, 4)));
/* if.c */
extern int ifinit(void);
-extern int interface_up(char *name);
-extern int interface_status(struct ifinfo*);
-extern int lladdropt_length(struct sockaddr_dl *sdl);
-extern void lladdropt_fill(struct sockaddr_dl *sdl, struct nd_opt_hdr *ndopt);
-extern struct sockaddr_dl *if_nametosdl(char *name);
-extern int getinet6sysctl(int code);
+extern int interface_up(char *);
+extern int interface_status(struct ifinfo *);
+extern int lladdropt_length(struct sockaddr_dl *);
+extern void lladdropt_fill(struct sockaddr_dl *, struct nd_opt_hdr *);
+extern struct sockaddr_dl *if_nametosdl(char *);
+extern int getinet6sysctl(int);
/* rtsol.c */
extern int sockopen(void);
-extern void sendpacket(struct ifinfo *ifinfo);
-extern void rtsol_input(int s);
+extern void sendpacket(struct ifinfo *);
+extern void rtsol_input(int);
/* probe.c */
extern int probe_init(void);
-extern void defrouter_probe(int ifindex);
+extern void defrouter_probe(int);
/* dump.c */
extern void rtsold_dump_file(char *);