Date: Thu, 13 Nov 2008 10:14:30 +0000 (UTC) From: Lawrence Stewart <lstewart@FreeBSD.org> To: src-committers@freebsd.org, svn-src-projects@freebsd.org Subject: svn commit: r184915 - projects/tcp_cc_8.x/sys/netinet Message-ID: <200811131014.mADAEUnH055404@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: lstewart Date: Thu Nov 13 10:14:30 2008 New Revision: 184915 URL: http://svn.freebsd.org/changeset/base/184915 Log: - Remove an unnecessary printf and malloc type - Clean up some white space Modified: projects/tcp_cc_8.x/sys/netinet/cc.c Modified: projects/tcp_cc_8.x/sys/netinet/cc.c ============================================================================== --- projects/tcp_cc_8.x/sys/netinet/cc.c Thu Nov 13 09:53:53 2008 (r184914) +++ projects/tcp_cc_8.x/sys/netinet/cc.c Thu Nov 13 10:14:30 2008 (r184915) @@ -59,9 +59,6 @@ struct cc_head cc_list = STAILQ_HEAD_INI struct rwlock cc_list_lock; -MALLOC_DECLARE(M_STRING); -MALLOC_DEFINE(M_STRING, "string", "a string"); - /* create a struct to point to our newreno functions */ struct cc_algo newreno_cc_algo = { .name = "newreno", @@ -248,7 +245,6 @@ cc_register_algorithm(struct cc_algo *ad int newreno_init(struct tcpcb *tp) { - printf("initialising tcp connection with newreno congestion control\n"); return 0; } @@ -349,10 +345,10 @@ newreno_ack_received(struct tcpcb *tp, s /* * update the value of ssthresh before entering FR */ -void +void newreno_pre_fr(struct tcpcb *tp, struct tcphdr *th) { - newreno_ssthresh_update(tp); + newreno_ssthresh_update(tp); } /* @@ -360,7 +356,7 @@ newreno_pre_fr(struct tcpcb *tp, struct * th can be null, in which case cwnd will be set according to reno instead * of new reno. */ -void +void newreno_post_fr(struct tcpcb *tp, struct tcphdr *th) { /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200811131014.mADAEUnH055404>