diff options
author | pluknet <pluknet@FreeBSD.org> | 2011-04-13 11:28:46 +0000 |
---|---|---|
committer | pluknet <pluknet@FreeBSD.org> | 2011-04-13 11:28:46 +0000 |
commit | e48732e3d4ec334052e23d71e2ac3549b3e2afe2 (patch) | |
tree | a367adfc1ca94fc730e590692668a9d5276d2928 /sys/netinet/cc | |
parent | deb84340e76bf433a72d129c9a622021f6fa2821 (diff) | |
download | FreeBSD-src-e48732e3d4ec334052e23d71e2ac3549b3e2afe2.zip FreeBSD-src-e48732e3d4ec334052e23d71e2ac3549b3e2afe2.tar.gz |
Staticize malloc types.
Approved by: lstewart
MFC after: 1 week
Diffstat (limited to 'sys/netinet/cc')
-rw-r--r-- | sys/netinet/cc/cc_chd.c | 3 | ||||
-rw-r--r-- | sys/netinet/cc/cc_cubic.c | 3 | ||||
-rw-r--r-- | sys/netinet/cc/cc_htcp.c | 3 | ||||
-rw-r--r-- | sys/netinet/cc/cc_vegas.c | 3 |
4 files changed, 4 insertions, 8 deletions
diff --git a/sys/netinet/cc/cc_chd.c b/sys/netinet/cc/cc_chd.c index 9152a0b..5f64f6c 100644 --- a/sys/netinet/cc/cc_chd.c +++ b/sys/netinet/cc/cc_chd.c @@ -127,8 +127,7 @@ static VNET_DEFINE(uint32_t, chd_qthresh) = 20; #define V_chd_loss_fair VNET(chd_loss_fair) #define V_chd_use_max VNET(chd_use_max) -MALLOC_DECLARE(M_CHD); -MALLOC_DEFINE(M_CHD, "chd data", +static MALLOC_DEFINE(M_CHD, "chd data", "Per connection data required for the CHD congestion control algorithm"); struct cc_algo chd_cc_algo = { diff --git a/sys/netinet/cc/cc_cubic.c b/sys/netinet/cc/cc_cubic.c index 2c5d82c..17a6985 100644 --- a/sys/netinet/cc/cc_cubic.c +++ b/sys/netinet/cc/cc_cubic.c @@ -98,8 +98,7 @@ struct cubic { int t_last_cong; }; -MALLOC_DECLARE(M_CUBIC); -MALLOC_DEFINE(M_CUBIC, "cubic data", +static MALLOC_DEFINE(M_CUBIC, "cubic data", "Per connection data required for the CUBIC congestion control algorithm"); struct cc_algo cubic_cc_algo = { diff --git a/sys/netinet/cc/cc_htcp.c b/sys/netinet/cc/cc_htcp.c index 4ada9d9..15b7973 100644 --- a/sys/netinet/cc/cc_htcp.c +++ b/sys/netinet/cc/cc_htcp.c @@ -173,8 +173,7 @@ static VNET_DEFINE(u_int, htcp_rtt_scaling) = 0; #define V_htcp_adaptive_backoff VNET(htcp_adaptive_backoff) #define V_htcp_rtt_scaling VNET(htcp_rtt_scaling) -MALLOC_DECLARE(M_HTCP); -MALLOC_DEFINE(M_HTCP, "htcp data", +static MALLOC_DEFINE(M_HTCP, "htcp data", "Per connection data required for the HTCP congestion control algorithm"); struct cc_algo htcp_cc_algo = { diff --git a/sys/netinet/cc/cc_vegas.c b/sys/netinet/cc/cc_vegas.c index ac3c89f..d25ecf9 100644 --- a/sys/netinet/cc/cc_vegas.c +++ b/sys/netinet/cc/cc_vegas.c @@ -105,8 +105,7 @@ static VNET_DEFINE(uint32_t, vegas_beta) = 3; #define V_vegas_alpha VNET(vegas_alpha) #define V_vegas_beta VNET(vegas_beta) -MALLOC_DECLARE(M_VEGAS); -MALLOC_DEFINE(M_VEGAS, "vegas data", +static MALLOC_DEFINE(M_VEGAS, "vegas data", "Per connection data required for the Vegas congestion control algorithm"); struct cc_algo vegas_cc_algo = { |