* [PATCH net-next] sctp: fix compile warnings in sctp_tsnmap_num_gabs
@ 2011-02-20 7:57 ` Shan Wei
0 siblings, 0 replies; 4+ messages in thread
From: Shan Wei @ 2011-02-20 7:57 UTC (permalink / raw)
To: Vlad Yasevich, David Miller, Network-Maillist, SCTP-Maillist
net/sctp/tsnmap.c: In function ‘sctp_tsnmap_num_gabs’:
net/sctp/tsnmap.c:347: warning: ‘start’ may be used uninitialized in this function
net/sctp/tsnmap.c:347: warning: ‘end’ may be used uninitialized in this function
Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
---
net/sctp/tsnmap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/sctp/tsnmap.c b/net/sctp/tsnmap.c
index 747d541..f1e40ce 100644
--- a/net/sctp/tsnmap.c
+++ b/net/sctp/tsnmap.c
@@ -344,7 +344,7 @@ __u16 sctp_tsnmap_num_gabs(struct sctp_tsnmap *map,
/* Refresh the gap ack information. */
if (sctp_tsnmap_has_gap(map)) {
- __u16 start, end;
+ __u16 start = 0, end = 0;
sctp_tsnmap_iter_init(map, &iter);
while (sctp_tsnmap_next_gap_ack(map, &iter,
&start,
--
1.6.3.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH net-next] sctp: fix compile warnings in sctp_tsnmap_num_gabs
@ 2011-02-20 7:57 ` Shan Wei
0 siblings, 0 replies; 4+ messages in thread
From: Shan Wei @ 2011-02-20 7:57 UTC (permalink / raw)
To: Vlad Yasevich, David Miller, Network-Maillist, SCTP-Maillist
net/sctp/tsnmap.c: In function ‘sctp_tsnmap_num_gabs’:
net/sctp/tsnmap.c:347: warning: ‘start’ may be used uninitialized in this function
net/sctp/tsnmap.c:347: warning: ‘end’ may be used uninitialized in this function
Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
---
net/sctp/tsnmap.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/net/sctp/tsnmap.c b/net/sctp/tsnmap.c
index 747d541..f1e40ce 100644
--- a/net/sctp/tsnmap.c
+++ b/net/sctp/tsnmap.c
@@ -344,7 +344,7 @@ __u16 sctp_tsnmap_num_gabs(struct sctp_tsnmap *map,
/* Refresh the gap ack information. */
if (sctp_tsnmap_has_gap(map)) {
- __u16 start, end;
+ __u16 start = 0, end = 0;
sctp_tsnmap_iter_init(map, &iter);
while (sctp_tsnmap_next_gap_ack(map, &iter,
&start,
--
1.6.3.3
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] sctp: fix compile warnings in
2011-02-20 7:57 ` Shan Wei
@ 2011-02-20 19:10 ` David Miller
-1 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2011-02-20 19:10 UTC (permalink / raw)
To: shanwei; +Cc: vladislav.yasevich, netdev, linux-sctp
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="windows-1254", Size: 495 bytes --]
From: Shan Wei <shanwei@cn.fujitsu.com>
Date: Sun, 20 Feb 2011 15:57:26 +0800
> net/sctp/tsnmap.c: In function ¡sctp_tsnmap_num_gabs¢:
> net/sctp/tsnmap.c:347: warning: ¡start¢ may be used uninitialized in this function
> net/sctp/tsnmap.c:347: warning: ¡end¢ may be used uninitialized in this function
>
> Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
Applied.
ÿôèº{.nÇ+·®+%Ëÿ±éݶ\x17¥wÿº{.nÇ+·¥{±þÇ-§ø§¶\x17¡Ü¨}©²Æ zÚ&j:+v¨þø\x1e¯ù\x1e®w¥þà2Þ¨èÚ&¢)ß¡«a¶Úÿÿûàz¿äz¹Þú+ùÝ¢jÿwèþ^[f
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH net-next] sctp: fix compile warnings in sctp_tsnmap_num_gabs
@ 2011-02-20 19:10 ` David Miller
0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2011-02-20 19:10 UTC (permalink / raw)
To: shanwei; +Cc: vladislav.yasevich, netdev, linux-sctp
From: Shan Wei <shanwei@cn.fujitsu.com>
Date: Sun, 20 Feb 2011 15:57:26 +0800
> net/sctp/tsnmap.c: In function ‘sctp_tsnmap_num_gabs’:
> net/sctp/tsnmap.c:347: warning: ‘start’ may be used uninitialized in this function
> net/sctp/tsnmap.c:347: warning: ‘end’ may be used uninitialized in this function
>
> Signed-off-by: Shan Wei <shanwei@cn.fujitsu.com>
Applied.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-02-20 19:10 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-20 7:57 [PATCH net-next] sctp: fix compile warnings in sctp_tsnmap_num_gabs Shan Wei
2011-02-20 7:57 ` Shan Wei
2011-02-20 19:10 ` [PATCH net-next] sctp: fix compile warnings in David Miller
2011-02-20 19:10 ` [PATCH net-next] sctp: fix compile warnings in sctp_tsnmap_num_gabs David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.