-/* $OpenBSD: advcap.c,v 1.15 2015/01/19 18:20:47 deraadt Exp $ */
+/* $OpenBSD: advcap.c,v 1.16 2015/10/25 22:11:34 jca Exp $ */
/* $KAME: advcap.c,v 1.9 2002/05/29 14:28:35 itojun Exp $ */
/*
* we just notice escaped newlines.
*/
int
-tgetent(bp, name)
- char *bp, *name;
+tgetent(char *bp, char *name)
{
char *cp;
}
int
-getent(bp, name, cp)
- char *bp, *name, *cp;
+getent(char *bp, char *name, char *cp)
{
int c;
int i = 0, cnt = 0;
* Note that this works because of the left to right scan.
*/
int
-tnchktc()
+tnchktc(void)
{
char *p, *q;
char tcname[16]; /* name of similar terminal */
* name (before the first field) stops us.
*/
int
-tnamatch(np)
- char *np;
+tnamatch(char *np)
{
char *Np, *Bp;
* into the termcap file in octal.
*/
static char *
-tskip(bp)
- char *bp;
+tskip(char *bp)
{
int dquote;
* Note that we handle octal numbers beginning with 0.
*/
int64_t
-tgetnum(id)
- char *id;
+tgetnum(char *id)
{
int64_t i;
int base;
* not given.
*/
int
-tgetflag(id)
- char *id;
+tgetflag(char *id)
{
char *bp = tbuf;
* No checking on area overflow.
*/
char *
-tgetstr(id, area)
- char *id, **area;
+tgetstr(char *id, char **area)
{
char *bp = tbuf;
* string capability escapes.
*/
static char *
-tdecode(str, area)
- char *str;
- char **area;
+tdecode(char *str, char **area)
{
char *cp;
int c;
-/* $OpenBSD: config.c,v 1.43 2015/01/16 06:40:20 deraadt Exp $ */
+/* $OpenBSD: config.c,v 1.44 2015/10/25 22:11:34 jca Exp $ */
/* $KAME: config.c,v 1.62 2002/05/29 10:13:10 itojun Exp $ */
/*
extern struct ralist ralist;
void
-getconfig(intface)
- char *intface;
+getconfig(char *intface)
{
int stat, i;
char tbuf[BUFSIZ];
}
static void
-makeentry(buf, len, id, string)
- char *buf;
- size_t len;
- int id;
- char *string;
+makeentry(char *buf, size_t len, int id, char *string)
{
if (id < 0)
-/* $OpenBSD: dump.c,v 1.15 2015/06/03 02:24:36 millert Exp $ */
+/* $OpenBSD: dump.c,v 1.16 2015/10/25 22:11:34 jca Exp $ */
/* $KAME: dump.c,v 1.27 2002/05/29 14:23:55 itojun Exp $ */
/*
};
static char *
-ether_str(sdl)
- struct sockaddr_dl *sdl;
+ether_str(struct sockaddr_dl *sdl)
{
static char hbuf[NI_MAXHOST];
u_char *cp;
-/* $OpenBSD: if.c,v 1.28 2015/08/20 22:39:29 deraadt Exp $ */
+/* $OpenBSD: if.c,v 1.29 2015/10/25 22:11:34 jca Exp $ */
/* $KAME: if.c,v 1.17 2001/01/21 15:27:30 itojun Exp $ */
/*
}
void
-init_iflist()
+init_iflist(void)
{
if (ifblock) {
free(ifblock);
-/* $OpenBSD: rtadvd.c,v 1.57 2015/10/25 21:31:58 jca Exp $ */
+/* $OpenBSD: rtadvd.c,v 1.58 2015/10/25 22:11:34 jca Exp $ */
/* $KAME: rtadvd.c,v 1.66 2002/05/29 14:18:36 itojun Exp $ */
/*
static void rtadvd_set_dump(int);
int
-main(argc, argv)
- int argc;
- char *argv[];
+main(int argc, char *argv[])
{
struct pollfd pfd[2];
struct timeval *timeout;
}
static void
-die()
+die(void)
{
struct rainfo *ra;
int i;
}
static void
-rtmsg_input()
+rtmsg_input(void)
{
int n, type, ifindex = 0, plen;
size_t len;
}
void
-rtadvd_input()
+rtadvd_input(void)
{
int i;
int *hlimp = NULL;
}
void
-sock_open()
+sock_open(void)
{
struct rainfo *ra;
struct icmp6_filter filt;
/* open a routing socket to watch the routing table */
static void
-rtsock_open()
+rtsock_open(void)
{
if ((rtsock = socket(PF_ROUTE, SOCK_RAW, 0)) < 0)
fatal("socket");
}
static void
-ra_output(rainfo)
-struct rainfo *rainfo;
+ra_output(struct rainfo *rainfo)
{
int i;
struct cmsghdr *cm;
-/* $OpenBSD: timer.c,v 1.13 2014/11/02 02:45:46 deraadt Exp $ */
+/* $OpenBSD: timer.c,v 1.14 2015/10/25 22:11:34 jca Exp $ */
/* $KAME: timer.c,v 1.7 2002/05/21 14:26:55 itojun Exp $ */
/*
* Return the next interval.
*/
struct timeval *
-rtadvd_check_timer()
+rtadvd_check_timer(void)
{
static struct timeval returnval;
struct timeval now;