diff options
author | Toomas Soome <tsoome@FreeBSD.org> | 2016-08-26 14:58:57 +0000 |
---|---|---|
committer | Toomas Soome <tsoome@FreeBSD.org> | 2016-08-26 14:58:57 +0000 |
commit | 41638b75ce185430f18112f66b50471ac6306c3c (patch) | |
tree | 17bd92c4fc905f11e82d9c9a7af32baac99194a5 | |
parent | a5234e8ccb2cfd62eb050bffd36b7f6903833875 (diff) |
Notes
-rw-r--r-- | lib/libstand/dosfs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libstand/dosfs.c b/lib/libstand/dosfs.c index 0ab5b97c21c9e..652ac92caee38 100644 --- a/lib/libstand/dosfs.c +++ b/lib/libstand/dosfs.c @@ -439,7 +439,7 @@ dos_readdir(struct open_file *fd, struct dirent *d) u_char fn[261]; DOS_DIR dd; size_t res; - u_int chk, i, x, xdn; + u_int chk, x, xdn; int err; x = chk = 0; @@ -598,7 +598,7 @@ lookup(DOS_FS *fs, u_int clus, const char *name, DOS_DE **dep) u_char lfn[261]; u_char sfn[13]; u_int nsec, lsec, xdn, chk, sec, ent, x; - int err, ok, i; + int err, ok; if (!clus) for (ent = 0; ent < 2; ent++) @@ -774,11 +774,11 @@ fatget(DOS_FS *fs, u_int *c) int err = 0; if (fat.unit != dd->d_unit) { - /* fat cache was changed to another device, dont use it */ + /* fat cache was changed to another device, don't use it */ err = ioread(fs, secbyt(fs->lsnfat) + fatoff(fs->fatsz, *c), buf, fs->fatsz != 32 ? 2 : 4); if (err) - return err; + return (err); } else { offset = fatoff(fs->fatsz, *c); nbyte = fs->fatsz != 32 ? 2 : 4; |