netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andi Kleen <ak@muc.de>
To: ncorbic@sangoma.com, davem@redhat.com, netdev@oss.sgi.com
Subject: [PATCH] Fix 64bit warning/bug in farsync.c
Date: Tue, 7 Oct 2003 19:57:57 +0200	[thread overview]
Message-ID: <20031007175757.GA1764@averell> (raw)


Fix obvious 64bit bug/warning in farsync.c

diff -u linux-2.5-cleanup/drivers/net/wan/farsync.c-o linux-2.5-cleanup/drivers/net/wan/farsync.c
--- linux-2.5-cleanup/drivers/net/wan/farsync.c-o	2003-08-04 22:06:34.000000000 +0200
+++ linux-2.5-cleanup/drivers/net/wan/farsync.c	2003-12-02 16:50:08.040067224 +0100
@@ -317,7 +317,7 @@
 };
 
 /* Calculate offset of a buffer object within the shared memory window */
-#define BUF_OFFSET(X)   ((unsigned int)&(((struct buf_window *)BFM_BASE)->X))
+#define BUF_OFFSET(X)   offsetof(struct buf_window, X)
 
 #pragma pack()
 

                 reply	other threads:[~2003-10-07 17:57 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=20031007175757.GA1764@averell \
    --to=ak@muc.de \
    --cc=davem@redhat.com \
    --cc=ncorbic@sangoma.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 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).