Skip to content

Commit

Permalink
loss_interval: Fix timeval initialisation
Browse files Browse the repository at this point in the history
When compiling with EXTRA_CFLAGS=-W noticed that tstamp is not initialised
correctly in dccp_li_calc_first_li.

Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Signed-off-by: Ian McDonald <ian.mcdonald@jandi.co.nz>
  • Loading branch information
Ian McDonald authored and David S. Miller committed Jul 11, 2007
1 parent e961811 commit 6bc7efe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/dccp/ccids/ccid3.c
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,7 @@ static u32 ccid3_hc_rx_calc_first_li(struct sock *sk)
struct dccp_rx_hist_entry *entry, *next, *tail = NULL;
u32 x_recv, p;
suseconds_t rtt, delta;
struct timeval tstamp = { 0, };
struct timeval tstamp = { 0, 0 };
int interval = 0;
int win_count = 0;
int step = 0;
Expand Down

0 comments on commit 6bc7efe

Please sign in to comment.