-/* $OpenBSD: gencode.c,v 1.65 2024/04/05 18:01:56 deraadt Exp $ */
+/* $OpenBSD: gencode.c,v 1.66 2024/04/08 02:51:14 jsg Exp $ */
/*
* Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998
}
static __inline void
-syntax()
+syntax(void)
{
bpf_error("syntax error in filter expression");
}
}
static __inline struct block *
-gen_true()
+gen_true(void)
{
return gen_uncond(1);
}
static __inline struct block *
-gen_false()
+gen_false(void)
{
return gen_uncond(0);
}
#ifdef INET6
static struct block *
gen_hostop6(struct in6_addr *addr, struct in6_addr *mask, int dir, int proto,
- u_int src_off, u_int dst_off)
+ u_int src_off, u_int dst_off)
{
struct block *b0, *b1;
u_int offset;
#ifndef INET6
static struct block *
-gen_gateway(eaddr, alist, proto, dir)
- const u_char *eaddr;
- bpf_u_int32 **alist;
- int proto;
- int dir;
+gen_gateway(const u_char *eaddr, bpf_u_int32 **alist, int proto, int dir)
{
struct block *b0, *b1, *tmp;
}
static struct block *
-gen_ipfrag()
+gen_ipfrag(void)
{
struct slist *s, *tmp;
struct block *b;
}
struct arth *
-gen_loadlen()
+gen_loadlen(void)
{
int regno = alloc_reg();
struct arth *a = (struct arth *)newchunk(sizeof(*a));
}
struct arth *
-gen_loadrnd()
+gen_loadrnd(void)
{
int regno = alloc_reg();
struct arth *a = (struct arth *)newchunk(sizeof(*a));
* Return the next free register.
*/
static int
-alloc_reg()
+alloc_reg(void)
{
int n = BPF_MEMWORDS;
%{
-/* $OpenBSD: grammar.y,v 1.23 2021/12/01 18:28:45 deraadt Exp $ */
+/* $OpenBSD: grammar.y,v 1.24 2024/04/08 02:51:14 jsg Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996
int yyparse(void);
int
-pcap_parse()
+pcap_parse(void)
{
return (yyparse());
}
-/* $OpenBSD: optimize.c,v 1.22 2024/04/05 18:01:56 deraadt Exp $ */
+/* $OpenBSD: optimize.c,v 1.23 2024/04/08 02:51:14 jsg Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1993, 1994, 1995, 1996
struct valnode *next_vnode;
static void
-init_val()
+init_val(void)
{
curval = 0;
next_vnode = vnode_base;
}
static void
-opt_cleanup()
+opt_cleanup(void)
{
free((void *)vnode_base);
free((void *)vmap);
#ifdef BDEBUG
static void
-opt_dump(root)
- struct block *root;
+opt_dump(struct block *root)
{
struct bpf_program f;
%{
-/* $OpenBSD: scanner.l,v 1.29 2024/04/05 18:01:56 deraadt Exp $ */
+/* $OpenBSD: scanner.l,v 1.30 2024/04/08 02:51:14 jsg Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997
* define a macro to map this identifier to pcap_wrap.
*/
int
-yywrap()
+yywrap(void)
{
return 1;
}