mirror of
https://github.com/openvswitch/ovs
synced 2025-09-01 14:55:18 +00:00
sflow functions: fix unused parameter warnings for sflow functions
Several 'sflow' functions (sfl_poller_tick, sfl_sampler_tick, and sfl_receiver_tick) have unused parameter 'now' in their signatures. This patch removes that parameter from their signatures to fix compilation warnings. Also, according to the 'utilities/checkpatch.py', there should be an indent between 'for' keyword an opening left paren. Additionally, the line containing 'for' keyword had to end with an opening curly brace. Therefore, I did a bit of formatting besides removing the unused parameter in the modified code. Signed-off-by: Sergey Madaminov <sergey.madaminov@gmail.com> Reviewed-by: Michael Santana <msantana@redhat.com> Signed-off-by: Alin-Gabriel Serdean <aserdean@ovn.org>
This commit is contained in:
committed by
Alin-Gabriel Serdean
parent
7796253db6
commit
13d05b8e5b
@@ -323,9 +323,9 @@ void sfl_sampler_init(SFLSampler *sampler, SFLAgent *agent, SFLDataSource_instan
|
||||
void sfl_poller_init(SFLPoller *poller, SFLAgent *agent, SFLDataSource_instance *pdsi, void *magic, getCountersFn_t getCountersFn);
|
||||
|
||||
|
||||
void sfl_receiver_tick(SFLReceiver *receiver, time_t now);
|
||||
void sfl_poller_tick(SFLPoller *poller, time_t now);
|
||||
void sfl_sampler_tick(SFLSampler *sampler, time_t now);
|
||||
void sfl_receiver_tick(SFLReceiver *receiver);
|
||||
void sfl_poller_tick(SFLPoller *poller);
|
||||
void sfl_sampler_tick(SFLSampler *sampler);
|
||||
|
||||
int sfl_receiver_writeFlowSample(SFLReceiver *receiver, SFL_FLOW_SAMPLE_TYPE *fs);
|
||||
int sfl_receiver_writeCountersSample(SFLReceiver *receiver, SFL_COUNTERS_SAMPLE_TYPE *cs);
|
||||
|
Reference in New Issue
Block a user