diff options
| author | Toomas Soome <tsoome@me.com> | 2019-05-10 09:34:33 +0300 |
|---|---|---|
| committer | Toomas Soome <tsoome@me.com> | 2019-05-21 16:51:34 +0300 |
| commit | 130d76529cb137edd96e5cb68f129e459d784703 (patch) | |
| tree | ac2c7fa4e52390e957d1d294702f057f7df1ffdf /usr/src/boot/lib/libstand/dosfs.c | |
| parent | ee2f9ca4ea24f72b05598c92aad7f42fb77b1345 (diff) | |
| download | illumos-joyent-130d76529cb137edd96e5cb68f129e459d784703.tar.gz | |
11045 libstand: smatch errors in dosfs and zfs reader
Reviewed by: Gergő Doma <domag02@gmail.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/boot/lib/libstand/dosfs.c')
| -rw-r--r-- | usr/src/boot/lib/libstand/dosfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/boot/lib/libstand/dosfs.c b/usr/src/boot/lib/libstand/dosfs.c index 1732511b07..d4bc2c9834 100644 --- a/usr/src/boot/lib/libstand/dosfs.c +++ b/usr/src/boot/lib/libstand/dosfs.c @@ -152,7 +152,7 @@ dos_read_fatblk(DOS_FS *fs, struct open_file *fd, uint_t blknum) daddr_t offset_in_fat, max_offset_in_fat; offset_in_fat = ((daddr_t)blknum) * FATBLKSZ; - max_offset_in_fat = secbyt(fs->spf); + max_offset_in_fat = secbyt((daddr_t)fs->spf); io_size = FATBLKSZ; if (offset_in_fat > max_offset_in_fat) offset_in_fat = max_offset_in_fat; @@ -692,7 +692,7 @@ cp_xdnm(uchar_t *lfn, DOS_XDE *xde) return; } if (xde->seq & 0x40) - *lfn = 0; + *lfn = 0; } /* |
