summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorGuEe-GUI <[email protected]>2024-12-18 10:55:37 +0800
committerRbb666 <[email protected]>2024-12-18 21:37:51 +0800
commit07b114ae7356e18930591384740415b8f3f16fce (patch)
treee0bbae2a5f39b2cd2e0d20e81e0d8468cd4c5d4e /components
parent20d116ed4e9ebb10d404fc815323949c608fd0cf (diff)
[DFS/FIXUP] Fixup ISO9660 build
Signed-off-by: GuEe-GUI <[email protected]>
Diffstat (limited to 'components')
-rw-r--r--components/dfs/dfs_v1/filesystems/iso9660/dfs_iso9660.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/components/dfs/dfs_v1/filesystems/iso9660/dfs_iso9660.c b/components/dfs/dfs_v1/filesystems/iso9660/dfs_iso9660.c
index 93b518eab4..612b68c40a 100644
--- a/components/dfs/dfs_v1/filesystems/iso9660/dfs_iso9660.c
+++ b/components/dfs/dfs_v1/filesystems/iso9660/dfs_iso9660.c
@@ -20,6 +20,7 @@
#include <dfs.h>
#include <dfs_fs.h>
#include <dfs_file.h>
+#include <posix/string.h>
#include <drivers/misc.h>
#include <drivers/byteorder.h>
@@ -118,7 +119,7 @@ rt_packed(struct iso9660_common_voldesc
struct iso9660_date created;
struct iso9660_date modified;
rt_uint8_t unused5[0 /* 1201 */];
-};
+});
struct iso9660
{
@@ -250,7 +251,7 @@ static struct iso9660_fd *iso9660_lookup(struct iso9660 *iso, const char *path,
/* Skip the first '/' */
++path;
- len = rt_strchrnul(path, '/') - path;
+ len = strchrnul(path, '/') - path;
}
lba = rt_le32_to_cpu(dirent->first_sector);
@@ -359,7 +360,7 @@ static struct iso9660_fd *iso9660_lookup(struct iso9660 *iso, const char *path,
sz = 0;
path += len + 1;
- len = rt_strchrnul(path, '/') - path;
+ len = strchrnul(path, '/') - path;
}
} while (len);
@@ -474,7 +475,7 @@ _end:
return rcount;
}
-static int dfs_iso9660_lseek(struct dfs_file *fd, off_t offset)
+static off_t dfs_iso9660_lseek(struct dfs_file *fd, off_t offset)
{
int ret = -EIO;