aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libfsimage
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-04-11 15:17:17 +0100
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-04-11 15:17:17 +0100
commit94ffc9e546aec100daf42ee7078b626f7c2316e1 (patch)
tree42a29eb9aa018f49ea008544d08efbcd67f202d8 /tools/libfsimage
parentcc73b915aeee39ce67829c5822300020e4a630de (diff)
downloadxen-94ffc9e546aec100daf42ee7078b626f7c2316e1.tar.gz
xen-94ffc9e546aec100daf42ee7078b626f7c2316e1.tar.bz2
xen-94ffc9e546aec100daf42ee7078b626f7c2316e1.zip
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>
Diffstat (limited to 'tools/libfsimage')
-rw-r--r--tools/libfsimage/fat/fat.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/libfsimage/fat/fat.h b/tools/libfsimage/fat/fat.h
index 7fed6bacb3..f72b72ab9d 100644
--- a/tools/libfsimage/fat/fat.h
+++ b/tools/libfsimage/fat/fat.h
@@ -84,17 +84,17 @@ struct fat_bpb {
#define FAT_DIRENTRY_LENGTH 32
#define FAT_DIRENTRY_ATTRIB(entry) \
- (*((unsigned char *) (entry+11)))
+ (*((__u8 *) (entry+11)))
#define FAT_DIRENTRY_VALID(entry) \
- ( ((*((unsigned char *) entry)) != 0) \
- && ((*((unsigned char *) entry)) != 0xE5) \
+ ( ((*((__u8 *) entry)) != 0) \
+ && ((*((__u8 *) entry)) != 0xE5) \
&& !(FAT_DIRENTRY_ATTRIB(entry) & FAT_ATTRIB_NOT_OK_MASK) )
#define FAT_DIRENTRY_FIRST_CLUSTER(entry) \
- ((*((unsigned short *) (entry+26)))+(*((unsigned short *) (entry+20)) << 16))
+ ((*((__u16 *) (entry+26)))+(*((__u16 *) (entry+20)) << 16))
#define FAT_DIRENTRY_FILELENGTH(entry) \
- (*((unsigned long *) (entry+28)))
+ (*((__u32 *) (entry+28)))
#define FAT_LONGDIR_ID(entry) \
- (*((unsigned char *) (entry)))
+ (*((__u8 *) (entry)))
#define FAT_LONGDIR_ALIASCHECKSUM(entry) \
- (*((unsigned char *) (entry+13)))
+ (*((__u8 *) (entry+13)))