diff options
author | Patrick McHardy <kaber@trash.net> | 2005-08-14 20:05:53 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-08-29 19:00:12 -0400 |
commit | a10cedd4b905236603c6c4fd77cf338ebbfb1a60 (patch) | |
tree | 118dd7b2c02317220b5d275edb8c1d04cd9cbe51 /net/dccp/ccids | |
parent | a1d3a35518779df0579dd9de0121354b49c68ddc (diff) |
[DCCP]: Fix compiler warnings
may be a false warning if there always is something on ccid3hcrx_hist:
net/dccp/ccids/ccid3.c: In function 'ccid3_hc_rx_packet_recv':
net/dccp/ccids/ccid3.c:1634: warning: 'tstamp.tv_usec' may be used uninitialized in this function
net/dccp/ccids/ccid3.c:1634: warning: 'tstamp.tv_sec' may be used uninitialized in this function
const on inline functions doesn't have any effect:
net/dccp/dccp.h:64: warning: type qualifiers ignored on function return type
net/dccp/dccp.h:70: warning: type qualifiers ignored on function return type
net/dccp/dccp.h:76: warning: type qualifiers ignored on function return type
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: Arnaldo Carvalho de Melo <acme@mandriva.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/dccp/ccids')
-rw-r--r-- | net/dccp/ccids/ccid3.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/dccp/ccids/ccid3.c b/net/dccp/ccids/ccid3.c index 21948d023c72..2dd3e94ba8f4 100644 --- a/net/dccp/ccids/ccid3.c +++ b/net/dccp/ccids/ccid3.c | |||
@@ -1634,7 +1634,7 @@ static u32 ccid3_hc_rx_calc_first_li(struct sock *sk) | |||
1634 | struct ccid3_hc_rx_sock *hcrx = dp->dccps_hc_rx_ccid_private; | 1634 | struct ccid3_hc_rx_sock *hcrx = dp->dccps_hc_rx_ccid_private; |
1635 | struct dccp_rx_hist_entry *entry, *next, *tail = NULL; | 1635 | struct dccp_rx_hist_entry *entry, *next, *tail = NULL; |
1636 | u32 rtt, delta, x_recv, fval, p, tmp2; | 1636 | u32 rtt, delta, x_recv, fval, p, tmp2; |
1637 | struct timeval tstamp, tmp_tv; | 1637 | struct timeval tstamp = { 0 }, tmp_tv; |
1638 | int interval = 0; | 1638 | int interval = 0; |
1639 | int win_count = 0; | 1639 | int win_count = 0; |
1640 | int step = 0; | 1640 | int step = 0; |