svn commit: r221365 - head/lib/libstand

Craig Rodrigues rodrigc at FreeBSD.org
Tue May 3 07:43:47 UTC 2011


Author: rodrigc
Date: Tue May  3 07:43:47 2011
New Revision: 221365
URL: http://svn.freebsd.org/changeset/base/221365

Log:
  - Comment out unused variable.
  - Add parentheses around expression to eliminate compiler warning.

Modified:
  head/lib/libstand/dosfs.c

Modified: head/lib/libstand/dosfs.c
==============================================================================
--- head/lib/libstand/dosfs.c	Tue May  3 07:39:54 2011	(r221364)
+++ head/lib/libstand/dosfs.c	Tue May  3 07:43:47 2011	(r221365)
@@ -358,7 +358,7 @@ dos_stat(struct open_file *fd, struct st
 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
 	}
     }
 
-    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));


More information about the svn-src-all mailing list