Skip to content

Commit 07b114a

Browse files
GuEe-GUIRbb666
authored andcommitted
[DFS/FIXUP] Fixup ISO9660 build
Signed-off-by: GuEe-GUI <[email protected]>
1 parent 20d116e commit 07b114a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

components/dfs/dfs_v1/filesystems/iso9660/dfs_iso9660.c

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
#include <dfs.h>
2121
#include <dfs_fs.h>
2222
#include <dfs_file.h>
23+
#include <posix/string.h>
2324
#include <drivers/misc.h>
2425
#include <drivers/byteorder.h>
2526

@@ -118,7 +119,7 @@ rt_packed(struct iso9660_common_voldesc
118119
struct iso9660_date created;
119120
struct iso9660_date modified;
120121
rt_uint8_t unused5[0 /* 1201 */];
121-
};
122+
});
122123

123124
struct iso9660
124125
{
@@ -250,7 +251,7 @@ static struct iso9660_fd *iso9660_lookup(struct iso9660 *iso, const char *path,
250251

251252
/* Skip the first '/' */
252253
++path;
253-
len = rt_strchrnul(path, '/') - path;
254+
len = strchrnul(path, '/') - path;
254255
}
255256

256257
lba = rt_le32_to_cpu(dirent->first_sector);
@@ -359,7 +360,7 @@ static struct iso9660_fd *iso9660_lookup(struct iso9660 *iso, const char *path,
359360
sz = 0;
360361

361362
path += len + 1;
362-
len = rt_strchrnul(path, '/') - path;
363+
len = strchrnul(path, '/') - path;
363364
}
364365
} while (len);
365366

@@ -474,7 +475,7 @@ static int dfs_iso9660_read(struct dfs_file *fd, void *buf, size_t count)
474475
return rcount;
475476
}
476477

477-
static int dfs_iso9660_lseek(struct dfs_file *fd, off_t offset)
478+
static off_t dfs_iso9660_lseek(struct dfs_file *fd, off_t offset)
478479
{
479480
int ret = -EIO;
480481

0 commit comments

Comments
 (0)