summaryrefslogtreecommitdiffstats
path: root/filter/filter.c
diff options
context:
space:
mode:
authorMartin Mares <mj@ucw.cz>2004-06-05 11:58:23 +0200
committerMartin Mares <mj@ucw.cz>2004-06-05 11:58:23 +0200
commit9831e5916f6956377739f948869d377b091f5c92 (patch)
tree47fd922a6348067faa9a2441cbe480fe8bc6be75 /filter/filter.c
parent598b984d1f04ea71fc04bc89f390f230a3960680 (diff)
downloadbird-9831e5916f6956377739f948869d377b091f5c92.tar
bird-9831e5916f6956377739f948869d377b091f5c92.zip
Staticized lots of local functions.
Diffstat (limited to 'filter/filter.c')
-rw-r--r--filter/filter.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/filter/filter.c b/filter/filter.c
index 9bae856..9cde3d9 100644
--- a/filter/filter.c
+++ b/filter/filter.c
@@ -50,7 +50,7 @@
#define CMP_ERROR 999
-struct adata *
+static struct adata *
adata_empty(struct linpool *pool)
{
struct adata *res = lp_alloc(pool, sizeof(struct adata));
@@ -122,7 +122,7 @@ val_compare(struct f_val v1, struct f_val v2)
/*
* val_simple_in_range - check if @v1 ~ @v2 for everything except sets
*/
-int
+static int
val_simple_in_range(struct f_val v1, struct f_val v2)
{
if ((v1.type == T_PATH) && (v2.type == T_PATH_MASK))
@@ -161,7 +161,7 @@ val_simple_in_range(struct f_val v1, struct f_val v2)
* Checks if @v1 is element (|~| operator) of @v2. Sets are internally represented as balanced trees, see
* |tree.c| module (this is not limited to sets, but for non-set cases, val_simple_in_range() is called early).
*/
-int
+static int
val_in_range(struct f_val v1, struct f_val v2)
{
int res;
@@ -240,7 +240,7 @@ static rta *f_rta_copy;
/*
* rta_cow - prepare rta for modification by filter
*/
-void
+static void
rta_cow(void)
{
if (!f_rta_copy) {