Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 3 May 2011 07:43:47 +0000 (UTC)
From:      Craig Rodrigues <rodrigc@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r221365 - head/lib/libstand
Message-ID:  <201105030743.p437hl8M075368@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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));



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201105030743.p437hl8M075368>