diff options
author | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-05-06 07:06:35 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@mandriva.org> | 2005-05-06 07:06:35 +0000 |
commit | 23e279e4414ab19c74e53260986dbcc6a3473a54 (patch) | |
tree | 2a22b55b8d8d953358c220a7160e76b491adb017 /perl-install/resize_fat | |
parent | ea8a5cc48b321fe03fffad3eab87e213ccdd18a2 (diff) | |
download | drakx-23e279e4414ab19c74e53260986dbcc6a3473a54.tar drakx-23e279e4414ab19c74e53260986dbcc6a3473a54.tar.gz drakx-23e279e4414ab19c74e53260986dbcc6a3473a54.tar.bz2 drakx-23e279e4414ab19c74e53260986dbcc6a3473a54.tar.xz drakx-23e279e4414ab19c74e53260986dbcc6a3473a54.zip |
gcc 4.0 was choking on lvalues of unpredictable type.
Diffstat (limited to 'perl-install/resize_fat')
-rw-r--r-- | perl-install/resize_fat/c_rewritten.xs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/perl-install/resize_fat/c_rewritten.xs b/perl-install/resize_fat/c_rewritten.xs index 89be89826..2bca483c0 100644 --- a/perl-install/resize_fat/c_rewritten.xs +++ b/perl-install/resize_fat/c_rewritten.xs @@ -40,7 +40,10 @@ void set_next(unsigned int cluster, unsigned int val) { free_all(); croak("fat::set_next: cluster %d outside filesystem", cluster); } - type_size == 1 ? *p : *((unsigned int *) p) = val; + if (type_size == 1) + *p = val; + else + *((unsigned int *) p) = val; } MODULE = resize_fat::c_rewritten PACKAGE = resize_fat::c_rewritten @@ -48,7 +51,7 @@ MODULE = resize_fat::c_rewritten PACKAGE = resize_fat::c_rewritten PROTOTYPES: DISABLE -void +void read_fat(fd, offset, size, magic) int fd int offset |