From: Brendan O'Dea Date: Tue, 8 Feb 2005 01:20:38 +0000 (+0000) Subject: make some functions static X-Git-Tag: 2.2.1-2fdn3.1~19^2^2~1^2~240 X-Git-Url: http://git.sameswireless.fr/l2tpns.git/commitdiff_plain/bdb517e525a216bc05e0b8bdcca69c6fc3f8c792 make some functions static --- diff --git a/cli.c b/cli.c index dace437..3da00da 100644 --- a/cli.c +++ b/cli.c @@ -2,7 +2,7 @@ // vim: sw=8 ts=8 char const *cvs_name = "$Name: $"; -char const *cvs_id_cli = "$Id: cli.c,v 1.52 2005-01-25 04:19:05 bodea Exp $"; +char const *cvs_id_cli = "$Id: cli.c,v 1.53 2005-02-08 01:20:38 bodea Exp $"; #include #include @@ -2508,7 +2508,7 @@ static char const *show_access_list_rule(int extended, ip_filter_rulet *rule) return buf; } -ip_filter_rulet *access_list_rule_ext(struct cli_def *cli, char *command, char **argv, int argc) +static ip_filter_rulet *access_list_rule_ext(struct cli_def *cli, char *command, char **argv, int argc) { static ip_filter_rulet rule; struct in_addr addr; @@ -2743,7 +2743,7 @@ ip_filter_rulet *access_list_rule_ext(struct cli_def *cli, char *command, char * return &rule; } -ip_filter_rulet *access_list_rule_std(struct cli_def *cli, char *command, char **argv, int argc) +static ip_filter_rulet *access_list_rule_std(struct cli_def *cli, char *command, char **argv, int argc) { static ip_filter_rulet rule; struct in_addr addr; diff --git a/l2tpns.c b/l2tpns.c index 778dd24..44fcda5 100644 --- a/l2tpns.c +++ b/l2tpns.c @@ -4,7 +4,7 @@ // Copyright (c) 2002 FireBrick (Andrews & Arnold Ltd / Watchfront Ltd) - GPL licenced // vim: sw=8 ts=8 -char const *cvs_id_l2tpns = "$Id: l2tpns.c,v 1.80 2005-01-25 04:19:05 bodea Exp $"; +char const *cvs_id_l2tpns = "$Id: l2tpns.c,v 1.81 2005-02-08 01:20:38 bodea Exp $"; #include #include @@ -632,7 +632,7 @@ static int lookup_ipmap(in_addr_t ip) return (int) (intptr_t) d[(size_t) *a]; } -int lookup_ipv6map(struct in6_addr ip) +static int lookup_ipv6map(struct in6_addr ip) { struct ipv6radix *curnode; int i; @@ -1086,7 +1086,7 @@ static void processipout(uint8_t * buf, int len) // process outgoing (to tunnel) IPv6 // -void processipv6out(uint8_t * buf, int len) +static void processipv6out(uint8_t * buf, int len) { sessionidt s; sessiont *sp; @@ -1396,7 +1396,7 @@ void throttle_session(sessionidt s, int rate_in, int rate_out) } // add/remove filters from session (-1 = no change) -void filter_session(sessionidt s, int filter_in, int filter_out) +static void filter_session(sessionidt s, int filter_in, int filter_out) { if (!session[s].tunnel) return; // No-one home.