patch-2.1.130 linux/include/linux/hfs_fs.h

Next file: linux/include/linux/hfs_sysdep.h
Previous file: linux/include/linux/console.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.129/linux/include/linux/hfs_fs.h linux/include/linux/hfs_fs.h
@@ -104,10 +104,10 @@
  */
 #define hfs_h_to_mtime(ARG)	htonl((hfs_s32)ntohl(ARG)+3029529600U)
 #define hfs_m_to_htime(ARG)	((hfs_s32)htonl(ntohl(ARG)-3029529600U))
-#define hfs_h_to_utime(ARG)	((hfs_s32)ntohl(ARG)+946684800U)
-#define hfs_u_to_htime(ARG)	((hfs_s32)htonl((ARG)-946684800U))
-#define hfs_u_to_mtime(ARG)	htonl((ARG)+2082844800U)
-#define hfs_m_to_utime(ARG)	(ntohl(ARG)-2082844800U)
+#define hfs_h_to_utime(ARG)	((hfs_s32)hfs_to_utc(ntohl(ARG)+946684800U))
+#define hfs_u_to_htime(ARG)	((hfs_s32)htonl(hfs_from_utc(ARG)-946684800U))
+#define hfs_u_to_mtime(ARG)	htonl(hfs_from_utc(ARG)+2082844800U)
+#define hfs_m_to_utime(ARG)	(hfs_to_utc(ntohl(ARG)-2082844800U))
 
 /*======== Data structures kept in memory ========*/
 

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