* [PATCH] Fix 64bit warning/bug in farsync.c
@ 2003-10-07 17:57 Andi Kleen
0 siblings, 0 replies; only message in thread
From: Andi Kleen @ 2003-10-07 17:57 UTC (permalink / raw)
To: ncorbic, davem, netdev
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()
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-10-07 17:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-10-07 17:57 [PATCH] Fix 64bit warning/bug in farsync.c Andi Kleen
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.