DORMANTno replies

[PATCH] Fix 64bit warning/bug in farsync.c

From: Andi Kleen <hidden>
Date: 2003-10-07 17:57:57

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()
 
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help