summaryrefslogtreecommitdiffstats
path: root/libc
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-09-05 22:15:24 +0200
committerAustin Foxley <austinf@cetoncorp.com>2009-09-18 11:22:46 -0700
commitd56307e14a572e5b7febaf2d20ba71e72d421d2e (patch)
tree1385c75e8d6972ea41b47653194eed7dced80d64 /libc
parent12b4c6b14c197397b47122c1a6c60e179d83376f (diff)
downloaduClibc-alpine-d56307e14a572e5b7febaf2d20ba71e72d421d2e.tar.bz2
uClibc-alpine-d56307e14a572e5b7febaf2d20ba71e72d421d2e.tar.xz
lckpwdf: remove a wrong comment and one write-only variable
no code changes (verified with objdump) Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
Diffstat (limited to 'libc')
-rw-r--r--libc/pwd_grp/lckpwdf.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/libc/pwd_grp/lckpwdf.c b/libc/pwd_grp/lckpwdf.c
index 68c46e02c..d9776ed2c 100644
--- a/libc/pwd_grp/lckpwdf.c
+++ b/libc/pwd_grp/lckpwdf.c
@@ -51,7 +51,6 @@ lckpwdf (void)
struct sigaction new_act; /* New signal action. */
struct flock fl; /* Information struct for locking. */
int result;
- int rv = -1;
if (lock_fd != -1)
/* Still locked by own process. */
@@ -65,7 +64,6 @@ lckpwdf (void)
#endif
lock_fd = open (_PATH_PASSWD, O_WRONLY | O_CLOEXEC);
if (lock_fd == -1) {
- /* Cannot create lock file. */
goto DONE;
}
/* Make sure file gets correctly closed when process finished. */
@@ -115,13 +113,11 @@ lckpwdf (void)
if (result < 0) {
close(lock_fd);
lock_fd = -1;
- goto DONE;
}
- rv = 0;
DONE:
__UCLIBC_MUTEX_UNLOCK(mylock);
- return 0;
+ return 0; /* TODO: return result? */
}