diff options
author | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-06-25 01:52:56 +0000 |
---|---|---|
committer | Michael Shalayeff <mickey@cvs.openbsd.org> | 2001-06-25 01:52:56 +0000 |
commit | 175d546a58b674b442ad2b97998b92ecdff00136 (patch) | |
tree | c69b2be8e938ce615a69ba94b69120e6fb7beee2 /sys | |
parent | f642fb2e9a5edbb5c8e001aab6f8d051ccfd10ac (diff) |
remove inlines they are plain wrong
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/pf.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/net/pf.c b/sys/net/pf.c index c77639088b0..9312a4f9c01 100644 --- a/sys/net/pf.c +++ b/sys/net/pf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pf.c,v 1.20 2001/06/25 01:00:35 provos Exp $ */ +/* $OpenBSD: pf.c,v 1.21 2001/06/25 01:52:55 mickey Exp $ */ /* * Copyright (c) 2001, Daniel Hartmeier @@ -143,7 +143,7 @@ void *pull_hdr(struct ifnet *, struct mbuf **, int, int, int, struct ip *, int *); int pf_test(int, struct ifnet *, struct mbuf **); -inline signed char +signed char tree_key_compare(struct tree_key *a, struct tree_key *b) { /* @@ -173,7 +173,7 @@ tree_key_compare(struct tree_key *a, struct tree_key *b) return (0); } -inline void +void tree_rotate_left(struct tree_node **p) { struct tree_node *q = *p; @@ -189,7 +189,7 @@ tree_rotate_left(struct tree_node **p) (*p)->balance += q->balance; } -inline void +void tree_rotate_right(struct tree_node **p) { struct tree_node *q = *p; @@ -319,7 +319,7 @@ tree_remove(struct tree_node **p, struct tree_key *key) return (deltaH); } -inline struct state * +struct state * find_state(struct tree_node *p, struct tree_key *key) { signed char c; @@ -410,7 +410,7 @@ purge_expired_states(void) } } -inline void +void print_ip(struct ifnet *ifp, struct ip *h) { u_int32_t a; @@ -761,7 +761,7 @@ done: return (error); } -inline u_int16_t +u_int16_t fix(u_int16_t cksum, u_int16_t old, u_int16_t new) { u_int32_t l = cksum + old - new; @@ -898,13 +898,13 @@ send_reset(int direction, struct ifnet *ifp, struct ip *h, int off, return; } -inline int +int match_addr(u_int8_t n, u_int32_t a, u_int32_t m, u_int32_t b) { return (n == !((a & m) == (b & m))); } -inline int +int match_port(u_int8_t op, u_int16_t a1, u_int16_t a2, u_int16_t p) { switch (op) { |