summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorrodrigc <rodrigc@FreeBSD.org>2011-05-03 07:43:47 +0000
committerrodrigc <rodrigc@FreeBSD.org>2011-05-03 07:43:47 +0000
commitcae92ca6ef2340a23fd73e6999d9bdcc1afc93fd (patch)
treea24132c7eb1aadf24a1d7ae03c510fb1f20ba77a /lib
parent7bbb44887631dfd982b3feeae027d739c464341f (diff)
downloadFreeBSD-src-cae92ca6ef2340a23fd73e6999d9bdcc1afc93fd.zip
FreeBSD-src-cae92ca6ef2340a23fd73e6999d9bdcc1afc93fd.tar.gz
- Comment out unused variable.
- Add parentheses around expression to eliminate compiler warning.
Diffstat (limited to 'lib')
-rw-r--r--lib/libstand/dosfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libstand/dosfs.c b/lib/libstand/dosfs.c
index 5ba10c1..e15ecdc 100644
--- a/lib/libstand/dosfs.c
+++ b/lib/libstand/dosfs.c
@@ -358,7 +358,7 @@ dos_stat(struct open_file *fd, struct stat *sb)
static int
dos_readdir(struct open_file *fd, struct dirent *d)
{
- DOS_FILE *f = (DOS_FILE *)fd->f_fsdata;
+ /* DOS_FILE *f = (DOS_FILE *)fd->f_fsdata; */
u_char fn[261];
DOS_DIR dd;
size_t res;
@@ -414,7 +414,7 @@ dos_readdir(struct open_file *fd, struct dirent *d)
}
}
- d->d_fileno = dd.de.clus[1] << 8 + dd.de.clus[0];
+ d->d_fileno = (dd.de.clus[1] << 8) + dd.de.clus[0];
d->d_reclen = sizeof(*d);
d->d_type = (dd.de.attr & FA_DIR) ? DT_DIR : DT_REG;
memcpy(d->d_name, fn, sizeof(d->d_name));
OpenPOWER on IntegriCloud