* [patch 1/4] tr.c warning fix
@ 2004-06-24 6:30 akpm
2004-06-24 19:42 ` David S. Miller
0 siblings, 1 reply; 2+ messages in thread
From: akpm @ 2004-06-24 6:30 UTC (permalink / raw)
To: davem; +Cc: netdev, akpm
A few things popped up when using current gcc cvs.
net/802/tr.c: In function `tr_header':
net/802/tr.c:113: warning: 'trh' is used uninitialized in this function
Signed-off-by: Andrew Morton <akpm@osdl.org>
---
25-akpm/net/802/tr.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
diff -puN net/802/tr.c~tr-warning-fixes net/802/tr.c
--- 25/net/802/tr.c~tr-warning-fixes 2004-06-23 22:55:28.191161688 -0700
+++ 25-akpm/net/802/tr.c 2004-06-23 22:55:39.811395144 -0700
@@ -110,7 +110,7 @@ int tr_header(struct sk_buff *skb, struc
*/
if (type == ETH_P_IP || type == ETH_P_IPV6 || type == ETH_P_ARP)
{
- struct trllc *trllc=(struct trllc *)(trh+1);
+ struct trllc *trllc;
hdr_len = sizeof(struct trh_hdr) + sizeof(struct trllc);
trh = (struct trh_hdr *)skb_push(skb, hdr_len);
_
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-06-24 19:42 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-24 6:30 [patch 1/4] tr.c warning fix akpm
2004-06-24 19:42 ` David S. Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).