ia64/xen-unstable

changeset 14807:83e4261378e7

libfsimage: Fix data types for 64-bit architectures.

In particular __u32 instead of ulong.

Signed-off-by: Tomohiro Takahashi <takatom@jp.fujitsu.com>
Signed-off-by: Keir Fraser <keir@xensource.com>
author kfraser@localhost.localdomain
date Wed Apr 11 15:17:17 2007 +0100 (2007-04-11)
parents 2aa05978f2ca
children ed78f08aad61
files tools/libfsimage/fat/fat.h
line diff
     1.1 --- a/tools/libfsimage/fat/fat.h	Wed Apr 11 14:45:43 2007 +0100
     1.2 +++ b/tools/libfsimage/fat/fat.h	Wed Apr 11 15:17:17 2007 +0100
     1.3 @@ -84,17 +84,17 @@ struct fat_bpb {
     1.4  #define FAT_DIRENTRY_LENGTH       32
     1.5  
     1.6  #define FAT_DIRENTRY_ATTRIB(entry) \
     1.7 -  (*((unsigned char *) (entry+11)))
     1.8 +  (*((__u8 *) (entry+11)))
     1.9  #define FAT_DIRENTRY_VALID(entry) \
    1.10 -  ( ((*((unsigned char *) entry)) != 0) \
    1.11 -    && ((*((unsigned char *) entry)) != 0xE5) \
    1.12 +  ( ((*((__u8 *) entry)) != 0) \
    1.13 +    && ((*((__u8 *) entry)) != 0xE5) \
    1.14      && !(FAT_DIRENTRY_ATTRIB(entry) & FAT_ATTRIB_NOT_OK_MASK) )
    1.15  #define FAT_DIRENTRY_FIRST_CLUSTER(entry) \
    1.16 -  ((*((unsigned short *) (entry+26)))+(*((unsigned short *) (entry+20)) << 16))
    1.17 +  ((*((__u16 *) (entry+26)))+(*((__u16 *) (entry+20)) << 16))
    1.18  #define FAT_DIRENTRY_FILELENGTH(entry) \
    1.19 -  (*((unsigned long *) (entry+28)))
    1.20 +  (*((__u32 *) (entry+28)))
    1.21  
    1.22  #define FAT_LONGDIR_ID(entry) \
    1.23 -  (*((unsigned char *) (entry)))
    1.24 +  (*((__u8 *) (entry)))
    1.25  #define FAT_LONGDIR_ALIASCHECKSUM(entry) \
    1.26 -  (*((unsigned char *) (entry+13)))
    1.27 +  (*((__u8 *) (entry+13)))