mirror of
https://github.com/deadw00d/AROS.git
synced 2025-12-08 06:20:50 +00:00
Endianness and error-handling fixes.
git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@46513 fb15a70f-31f2-0310-bbcc-cdcc74a49acc
This commit is contained in:
@ -167,7 +167,7 @@ LONG main() {
|
||||
if((bitmap=AllocVec(((globals->blocks_total+31)>>5)<<3,MEMF_CLEAR))!=0) {
|
||||
UBYTE *str;
|
||||
|
||||
bitmap[globals->blocks_total>>5]=0xFFFFFFFF>>(globals->blocks_total & 0x0000001F);
|
||||
bitmap[globals->blocks_total>>5]=L2BE(0xFFFFFFFF>>(globals->blocks_total & 0x0000001F));
|
||||
if((str=mark(0,blocks_reserved_start))!=0) {
|
||||
printf("Error while marking reserved blocks at start:\n%s",str);
|
||||
freestring(str);
|
||||
@ -198,6 +198,7 @@ LONG main() {
|
||||
}
|
||||
}
|
||||
else {
|
||||
errorcode = IoErr();
|
||||
PrintFault(errorcode, "error while locking the drive");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user