summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--perl-install/resize_fat/c_rewritten.xs7
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