From: Ian McDonald Date: Mon, 28 May 2007 19:37:45 +0000 (-0300) Subject: loss_interval: Fix timeval initialisation X-Git-Tag: v2.6.23-rc1~1109^2~149 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=6bc7efe8efa627077f8f65d01dbb762fc9356a2f;p=linux-2.6-omap-h63xx.git loss_interval: Fix timeval initialisation 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 Signed-off-by: Ian McDonald --- diff --git a/net/dccp/ccids/ccid3.c b/net/dccp/ccids/ccid3.c index 2d203ae41aa..9686a8de2e9 100644 --- a/net/dccp/ccids/ccid3.c +++ b/net/dccp/ccids/ccid3.c @@ -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;