* mount.cc (getmntent_r): Remove unused but set variable.
This commit is contained in:
parent
f9a0f9ad5f
commit
90c352ad77
@ -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>
|
2012-07-18 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
|
||||||
|
|
||||||
* cygwin.din (getmntent_r): Export.
|
* cygwin.din (getmntent_r): Export.
|
||||||
|
@ -1903,7 +1903,7 @@ extern "C" struct mntent *
|
|||||||
getmntent_r (FILE *, struct mntent *mntbuf, char *buf, int buflen)
|
getmntent_r (FILE *, struct mntent *mntbuf, char *buf, int buflen)
|
||||||
{
|
{
|
||||||
struct mntent *mnt = mount_table->getmntent (_my_tls.locals.iteration++);
|
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)
|
if (!mnt)
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -1911,7 +1911,6 @@ getmntent_r (FILE *, struct mntent *mntbuf, char *buf, int buflen)
|
|||||||
fsname_len = strlen (mnt->mnt_fsname) + 1;
|
fsname_len = strlen (mnt->mnt_fsname) + 1;
|
||||||
dir_len = strlen (mnt->mnt_dir) + 1;
|
dir_len = strlen (mnt->mnt_dir) + 1;
|
||||||
type_len = strlen (mnt->mnt_type) + 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',
|
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);
|
mnt->mnt_dir, '\0', mnt->mnt_type, '\0', mnt->mnt_opts);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user