From: akpm@osdl.org
To: davem@redhat.com
Cc: netdev@oss.sgi.com
Subject: [patch 4/18] gcc-3.5: decnet
Date: Sun, 25 Jan 2004 03:07:05 -0800 [thread overview]
Message-ID: <200401251107.i0PB75o25060@mail.osdl.org> (raw)
net/decnet/af_decnet.c: In function `dn_alloc_sock':
net/decnet/af_decnet.c:459: error: invalid lvalue in assignment
net/decnet/dn_neigh.c: In function `dn_phase3_output':
net/decnet/dn_neigh.c:330: error: invalid lvalue in assignment
---
25-akpm/net/decnet/af_decnet.c | 2 +-
25-akpm/net/decnet/dn_neigh.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff -puN net/decnet/af_decnet.c~gcc-35-decnet net/decnet/af_decnet.c
--- 25/net/decnet/af_decnet.c~gcc-35-decnet Fri Jan 23 15:37:10 2004
+++ 25-akpm/net/decnet/af_decnet.c Fri Jan 23 15:37:10 2004
@@ -456,7 +456,7 @@ struct sock *dn_alloc_sock(struct socket
if (!sk)
goto out;
- DN_SK(sk) = scp = (struct dn_scp *)(sk + 1);
+ sk->sk_protinfo = scp = (struct dn_scp *)(sk + 1);
if (sock)
sock->ops = &dn_proto_ops;
diff -puN net/decnet/dn_neigh.c~gcc-35-decnet net/decnet/dn_neigh.c
--- 25/net/decnet/dn_neigh.c~gcc-35-decnet Fri Jan 23 15:39:15 2004
+++ 25-akpm/net/decnet/dn_neigh.c Fri Jan 23 15:39:56 2004
@@ -327,7 +327,7 @@ static int dn_phase3_output(struct sk_bu
}
data = skb_push(skb, sizeof(struct dn_short_packet) + 2);
- ((unsigned short *)data) = dn_htons(skb->len - 2);
+ data = (unsigned char *)dn_htons(skb->len - 2);
sp = (struct dn_short_packet *)(data + 2);
sp->msgflg = DN_RT_PKT_SHORT|(cb->rt_flags&(DN_RT_F_RQR|DN_RT_F_RTS));
_
reply other threads:[~2004-01-25 11:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200401251107.i0PB75o25060@mail.osdl.org \
--to=akpm@osdl.org \
--cc=davem@redhat.com \
--cc=netdev@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.