summaryrefslogtreecommitdiff
path: root/lib/libutil
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2006-12-20 23:07:37 +0000
committerRay Lai <ray@cvs.openbsd.org>2006-12-20 23:07:37 +0000
commitfe1033c1e19b3e9ea273b4da5c50be117e4a8aa9 (patch)
treebe33b8696949529e3e265470d7f49daf8c6e5614 /lib/libutil
parent642587430f1b76aad136bb9679ead945e92ed3d5 (diff)
Don't use err as labels or variables, especially since we include
err.h. OK moritz@ and jaredy@.
Diffstat (limited to 'lib/libutil')
-rw-r--r--lib/libutil/passwd.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/libutil/passwd.c b/lib/libutil/passwd.c
index 94703156aed..cb2cd2ba269 100644
--- a/lib/libutil/passwd.c
+++ b/lib/libutil/passwd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: passwd.c,v 1.48 2006/12/17 20:50:51 ray Exp $ */
+/* $OpenBSD: passwd.c,v 1.49 2006/12/20 23:07:36 ray Exp $ */
/*
* Copyright (c) 1987, 1993, 1994, 1995
@@ -322,7 +322,7 @@ pw_copy(int ffd, int tfd, const struct passwd *pw, const struct passwd *opw)
if (done) {
(void)fprintf(to, "%s", buf);
if (ferror(to))
- goto err;
+ goto fail;
continue;
}
if (!(p = strchr(buf, ':'))) {
@@ -334,7 +334,7 @@ pw_copy(int ffd, int tfd, const struct passwd *pw, const struct passwd *opw)
*p = ':';
(void)fprintf(to, "%s", buf);
if (ferror(to))
- goto err;
+ goto fail;
continue;
}
if (opw != NULL) {
@@ -354,7 +354,7 @@ pw_copy(int ffd, int tfd, const struct passwd *pw, const struct passwd *opw)
pw->pw_shell);
done = 1;
if (ferror(to))
- goto err;
+ goto fail;
}
if (!done)
(void)fprintf(to, "%s:%s:%d:%d:%s:%d:%d:%s:%s:%s\n",
@@ -363,7 +363,7 @@ pw_copy(int ffd, int tfd, const struct passwd *pw, const struct passwd *opw)
pw->pw_dir, pw->pw_shell);
if (ferror(to))
-err:
+fail:
pw_error(NULL, 0, 1);
free(master);
(void)fclose(to);
@@ -461,11 +461,11 @@ fmt: warnx("corrupted entry");
}
__dead void
-pw_error(const char *name, int err, int eval)
+pw_error(const char *name, int error, int eval)
{
char *master = pw_file(_PATH_MASTERPASSWD);
- if (err) {
+ if (error) {
if (name)
warn("%s", name);
else