From fa4243d96f47001adb4330439aefb687ddd8ef05 Mon Sep 17 00:00:00 2001 From: ray <> Date: Wed, 20 Dec 2006 23:07:36 +0000 Subject: [PATCH] Don't use err as labels or variables, especially since we include err.h. OK moritz@ and jaredy@. --- src/lib/libutil/passwd.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/lib/libutil/passwd.c b/src/lib/libutil/passwd.c index 94703156..cb2cd2ba 100644 --- a/src/lib/libutil/passwd.c +++ b/src/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