aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--misc/getpass.c2
-rw-r--r--misc/mntent_r.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/misc/getpass.c b/misc/getpass.c
index e9bd889..04ac12a 100644
--- a/misc/getpass.c
+++ b/misc/getpass.c
@@ -58,7 +58,7 @@ getpass (prompt)
else
{
/* We do the locking ourselves. */
- __fsetlocking (tf, FSETLOCKING_BYCALLER);
+ __fsetlocking (in, FSETLOCKING_BYCALLER);
out = in;
}
diff --git a/misc/mntent_r.c b/misc/mntent_r.c
index 7d86626..1a87105 100644
--- a/misc/mntent_r.c
+++ b/misc/mntent_r.c
@@ -38,7 +38,7 @@ __setmntent (const char *file, const char *mode)
if (result != NULL)
/* We do the locking ourselves. */
- __fsetlocking (fp, FSETLOCKING_BYCALLER);
+ __fsetlocking (result, FSETLOCKING_BYCALLER);
return result;
}