patch-2.2.0-pre2 linux/include/linux/kernel.h

Next file: linux/include/linux/nfsd/nfsd.h
Previous file: linux/include/linux/hdreg.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.0-pre1/linux/include/linux/kernel.h linux/include/linux/kernel.h
@@ -71,10 +71,10 @@
  */
 
 #define NIPQUAD(addr) \
-	(int)(((addr) >> 0)  & 0xff), \
-	(int)(((addr) >> 8)  & 0xff), \
-	(int)(((addr) >> 16) & 0xff), \
-	(int)(((addr) >> 24) & 0xff)
+	((unsigned char *)&addr)[0], \
+	((unsigned char *)&addr)[1], \
+	((unsigned char *)&addr)[2], \
+	((unsigned char *)&addr)[3]
 
 #endif /* __KERNEL__ */
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov