diff options
author | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-09-12 22:28:29 +0000 |
---|---|---|
committer | patacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3> | 2008-09-12 22:28:29 +0000 |
commit | 48de33cb61458f3f546fd0a68a39b23c1a040a14 (patch) | |
tree | 6c98b024dabe08e3413e36be49c297b41e1948ce /nuttx | |
parent | 7f7a75500439520f91d397d91762b9e4b87f65c5 (diff) | |
download | px4-nuttx-48de33cb61458f3f546fd0a68a39b23c1a040a14.tar.gz px4-nuttx-48de33cb61458f3f546fd0a68a39b23c1a040a14.tar.bz2 px4-nuttx-48de33cb61458f3f546fd0a68a39b23c1a040a14.zip |
Use SEC_NSECTOR macro
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@921 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx')
-rw-r--r-- | nuttx/fs/romfs/fs_romfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nuttx/fs/romfs/fs_romfs.c b/nuttx/fs/romfs/fs_romfs.c index 5dbacd829..e031612f8 100644 --- a/nuttx/fs/romfs/fs_romfs.c +++ b/nuttx/fs/romfs/fs_romfs.c @@ -372,7 +372,7 @@ static ssize_t romfs_read(FAR struct file *filep, char *buffer, size_t buflen) * aligned to a sector boundary. */ - nsectors = buflen / rm->rm_hwsectorsize; + nsectors = SEC_NSECTORS(rm, buflen); if (nsectors > 0 && sectorndx == 0) { /* Read maximum contiguous sectors directly to the user's |