* mount.cc (getmntent_r): Remove unused but set variable.

This commit is contained in:
Yaakov Selkowitz 2012-07-19 09:04:02 +00:00
parent f9a0f9ad5f
commit 90c352ad77
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2012-07-19 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
* mount.cc (getmntent_r): Remove unused but set variable.
2012-07-18 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
* cygwin.din (getmntent_r): Export.

View File

@ -1903,7 +1903,7 @@ extern "C" struct mntent *
getmntent_r (FILE *, struct mntent *mntbuf, char *buf, int buflen)
{
struct mntent *mnt = mount_table->getmntent (_my_tls.locals.iteration++);
int fsname_len, dir_len, type_len, opts_len, tmplen = buflen;
int fsname_len, dir_len, type_len, tmplen = buflen;
if (!mnt)
return NULL;
@ -1911,7 +1911,6 @@ getmntent_r (FILE *, struct mntent *mntbuf, char *buf, int buflen)
fsname_len = strlen (mnt->mnt_fsname) + 1;
dir_len = strlen (mnt->mnt_dir) + 1;
type_len = strlen (mnt->mnt_type) + 1;
opts_len = strlen (mnt->mnt_opts) + 1;
snprintf (buf, buflen, "%s%c%s%c%s%c%s", mnt->mnt_fsname, '\0',
mnt->mnt_dir, '\0', mnt->mnt_type, '\0', mnt->mnt_opts);