diff options
author | Greg Watson <jarrah@users.sourceforge.net> | 2004-03-17 22:02:12 +0000 |
---|---|---|
committer | Greg Watson <jarrah@users.sourceforge.net> | 2004-03-17 22:02:12 +0000 |
commit | 9bc501825962dc630405dcd413ea67a12ebfedf9 (patch) | |
tree | f26eba50d51c11d3721b936377add3a61aaa566c /src/stream | |
parent | 983b189d919e78953e74915506f68e1be59143ba (diff) |
ppc fixes
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@1423 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/stream')
-rw-r--r-- | src/stream/fs/iso9660.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/stream/fs/iso9660.c b/src/stream/fs/iso9660.c index 489ea7023f..9d36a5cf54 100644 --- a/src/stream/fs/iso9660.c +++ b/src/stream/fs/iso9660.c @@ -141,7 +141,7 @@ iso9660_dir (char *dirname) const char *name = idr->name; unsigned int name_len = isonum_711(idr->name_len); - file_type = ((unsigned int)idr->flags & 2) ? ISO_DIRECTORY : ISO_REGULAR; + file_type = (isonum_711(idr->flags) & 2) ? ISO_DIRECTORY : ISO_REGULAR; if (name_len == 1) { if ((name[0] == 0) || /* self */ @@ -161,8 +161,8 @@ iso9660_dir (char *dirname) * Parse Rock-Ridge extension */ rr_len = (isonum_711(idr->length) - isonum_711(idr->name_len) - - (unsigned char)sizeof(struct iso_directory_record) - + (unsigned char)sizeof(idr->name)); + - sizeof(struct iso_directory_record) + + sizeof(idr->name)); rr_ptr.ptr = ((unsigned char *)idr + isonum_711(idr->name_len) + sizeof(struct iso_directory_record) - sizeof(idr->name)); @@ -180,9 +180,10 @@ iso9660_dir (char *dirname) printk_debug( "Non-supported version (%d) RockRidge chunk " "`%c%c'\n", rr_ptr.rr->version, - rr_ptr.rr->signature & 0xFF, - rr_ptr.rr->signature >> 8); + rr_ptr.rr->signature[0], + rr_ptr.rr->signature[1]); #endif + break; } else if (rr_ptr.rr->signature[0] == 'R' && rr_ptr.rr->signature[1] == 'R' |