Skip to content

Commit

Permalink
Fixed some build errors
Browse files Browse the repository at this point in the history
  • Loading branch information
kms1212 committed Feb 28, 2024
1 parent 14b4542 commit e8bf902
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
4 changes: 2 additions & 2 deletions fs/fat/fat.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ static int flush_diskbuf_entry(struct fs_fat* fs, unsigned int entry) {
if (fs->diskbuf[entry]->dirty) {
switch (fs->diskbuf[entry]->type) {
case DISKBUF_TYPE_CLUSTER: {
lba_t clus_head_lba;
lba_t clus_head_lba = 0;
cluster_to_sector(fs, &clus_head_lba, fs->diskbuf[entry]->cluster);
ofsl_drive_write_sector(
fs->part.drv,
Expand Down Expand Up @@ -484,7 +484,7 @@ static int read_cluster(struct fs_fat* fs, unsigned int* entry_idx, fatcluster_t
unsigned int target_entry_idx;
allocate_diskbuf_cluster_entry(fs, &target_entry_idx, cluster);

lba_t lba;
lba_t lba = 0;
cluster_to_sector(fs, &lba, cluster);

if (!fs->diskbuf[target_entry_idx]->data_valid) {
Expand Down
4 changes: 4 additions & 0 deletions fs/rawimage/rawimage_internal.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#ifndef DRIVE_RAWIMAGE_INTERNAL_H__
#define DRIVE_RAWIMAGE_INTERNAL_H__

#endif
4 changes: 2 additions & 2 deletions partition/partition.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@ const char* ofsl_ptbl_get_error_string(OFSL_PartitionTable* pt)
{
if (pt->error >= 0) {
if (pt->error > OFSL_PTE_MAX) {
return error_str_list[pt->error];
} else {
return NULL;
} else {
return error_str_list[pt->error];
}
} else {
return pt->ops->get_error_string(pt);
Expand Down
Binary file modified tests/data/iso9660/image.iso
Binary file not shown.

0 comments on commit e8bf902

Please sign in to comment.