From: Ben Pfaff Date: Fri, 21 Nov 2008 20:23:01 +0000 (-0800) Subject: Get rid of unused parameter to rate_limit_start(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92500deb632bf8ab869630eed4a1a852cc8302d5;p=openvswitch Get rid of unused parameter to rate_limit_start(). --- diff --git a/secchan/ratelimit.c b/secchan/ratelimit.c index e44352c3..7a1e4951 100644 --- a/secchan/ratelimit.c +++ b/secchan/ratelimit.c @@ -244,8 +244,7 @@ static struct hook_class rate_limit_hook_class = { void rate_limit_start(struct secchan *secchan, const struct settings *s, - struct switch_status *ss, - struct rconn *local, struct rconn *remote) + struct switch_status *ss, struct rconn *remote) { struct rate_limiter *rl; size_t i; diff --git a/secchan/ratelimit.h b/secchan/ratelimit.h index e2912545..25ab9777 100644 --- a/secchan/ratelimit.h +++ b/secchan/ratelimit.h @@ -40,7 +40,6 @@ struct settings; struct switch_status; void rate_limit_start(struct secchan *, const struct settings *, - struct switch_status *, - struct rconn *local, struct rconn *remote); + struct switch_status *, struct rconn *remote); #endif /* ratelimit.h */ diff --git a/secchan/secchan.c b/secchan/secchan.c index 8edb5b68..6f0a385b 100644 --- a/secchan/secchan.c +++ b/secchan/secchan.c @@ -195,8 +195,7 @@ main(int argc, char *argv[]) local_rconn, remote_rconn); } if (s.rate_limit) { - rate_limit_start(&secchan, &s, switch_status, - local_rconn, remote_rconn); + rate_limit_start(&secchan, &s, switch_status, remote_rconn); } if (s.command_acl[0]) { executer_start(&secchan, &s);