-/* $OpenBSD: etherent.c,v 1.4 1996/07/12 13:19:07 mickey Exp $ */
+/* $OpenBSD: etherent.c,v 1.5 1996/09/16 02:33:04 tholo Exp $ */
/*
* Copyright (c) 1990, 1993, 1994, 1995
#include "pcap-int.h"
-static inline int xdtoi(int);
-static inline int skip_space(FILE *);
-static inline int skip_line(FILE *);
+static __inline int xdtoi(int);
+static __inline int skip_space(FILE *);
+static __inline int skip_line(FILE *);
/* Hex digit to integer. */
-static inline int
+static __inline int
xdtoi(c)
register int c;
{
return c - 'A' + 10;
}
-static inline int
+static __inline int
skip_space(f)
FILE *f;
{
return c;
}
-static inline int
+static __inline int
skip_line(f)
FILE *f;
{
-/* $OpenBSD: gencode.c,v 1.4 1996/07/12 13:19:08 mickey Exp $ */
+/* $OpenBSD: gencode.c,v 1.5 1996/09/16 02:33:05 tholo Exp $ */
/*
* Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996
static void *newchunk(u_int);
static void freechunks(void);
-static inline struct block *new_block(int);
-static inline struct slist *new_stmt(int);
+static __inline struct block *new_block(int);
+static __inline struct slist *new_stmt(int);
static struct block *gen_retblk(int);
-static inline void syntax(void);
+static __inline void syntax(void);
static void backpatch(struct block *, struct block *);
static void merge(struct block *, struct block *);
static struct block *gen_mcmp(u_int, u_int, bpf_int32, bpf_u_int32);
static struct block *gen_bcmp(u_int, u_int, u_char *);
static struct block *gen_uncond(int);
-static inline struct block *gen_true(void);
-static inline struct block *gen_false(void);
+static __inline struct block *gen_true(void);
+static __inline struct block *gen_false(void);
static struct block *gen_linktype(int);
static struct block *gen_hostop(bpf_u_int32, bpf_u_int32, int, int, u_int, u_int);
static struct block *gen_ehostop(u_char *, int);
return (cp);
}
-static inline struct block *
+static __inline struct block *
new_block(code)
int code;
{
return p;
}
-static inline struct slist *
+static __inline struct slist *
new_stmt(code)
int code;
{
return b;
}
-static inline void
+static __inline void
syntax()
{
bpf_error("syntax error in filter expression");
return b;
}
-static inline struct block *
+static __inline struct block *
gen_true()
{
return gen_uncond(1);
}
-static inline struct block *
+static __inline struct block *
gen_false()
{
return gen_uncond(0);
-/* $OpenBSD: nametoaddr.c,v 1.4 1996/07/12 13:19:09 mickey Exp $ */
+/* $OpenBSD: nametoaddr.c,v 1.5 1996/09/16 02:33:06 tholo Exp $ */
/*
* Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996
#define NTOHS(x) (x) = ntohs(x)
#endif
-static inline int xdtoi(int);
+static __inline int xdtoi(int);
/*
* Convert host name to internet address.
}
/* Hex digit to integer. */
-static inline int
+static __inline int
xdtoi(c)
register int c;
{
#else
bpf_error("decnet name support not included, '%s' cannot be translated\n",
name);
+#ifdef lint
+ return 0;
+#endif
#endif
}
-/* $OpenBSD: optimize.c,v 1.4 1996/07/12 13:19:10 mickey Exp $ */
+/* $OpenBSD: optimize.c,v 1.5 1996/09/16 02:33:07 tholo Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1991, 1993, 1994, 1995, 1996
static void find_ud(struct block *);
static void init_val(void);
static int F(int, int, int);
-static inline void vstore(struct stmt *, int *, int, int);
+static __inline void vstore(struct stmt *, int *, int, int);
static void opt_blk(struct block *, int);
static int use_conflict(struct block *, struct block *);
static void opt_j(struct edge *);
static void or_pullup(struct block *);
static void and_pullup(struct block *);
static void opt_blks(struct block *, int);
-static inline void link_inedge(struct edge *, struct block *);
+static __inline void link_inedge(struct edge *, struct block *);
static void find_inedges(struct block *);
static void opt_root(struct block **);
static void opt_loop(struct block *, int);
static void fold_op(struct stmt *, int, int);
-static inline struct slist *this_op(struct slist *);
+static __inline struct slist *this_op(struct slist *);
static void opt_not(struct block *);
static void opt_peep(struct block *);
static void opt_stmt(struct stmt *, int[], int);
static int use_conflict(struct block *, struct block *);
static void opt_j(struct edge *);
static struct block *fold_edge(struct block *, struct edge *);
-static inline int eq_blk(struct block *, struct block *);
+static __inline int eq_blk(struct block *, struct block *);
static int slength(struct slist *);
static int count_blocks(struct block *);
static void number_blks_r(struct block *);
return val;
}
-static inline void
+static __inline void
vstore(s, valp, newval, alter)
struct stmt *s;
int *valp;
done = 0;
}
-static inline struct slist *
+static __inline struct slist *
this_op(s)
struct slist *s;
{
}
}
-static inline void
+static __inline void
link_inedge(parent, child)
struct edge *parent;
struct block *child;
}
}
-static inline int
+static __inline int
eq_blk(b0, b1)
struct block *b0, *b1;
{
-/* $OpenBSD: pcap-bpf.c,v 1.6 1996/07/12 13:19:10 mickey Exp $ */
+/* $OpenBSD: pcap-bpf.c,v 1.7 1996/09/16 02:33:08 tholo Exp $ */
/*
* Copyright (c) 1993, 1994, 1995, 1996
return (write(p->fd, buf, len));
}
-static inline int
+static __inline int
bpf_open(pcap_t *p, char *errbuf)
{
int fd;