summaryrefslogtreecommitdiffstats
path: root/chpass
diff options
context:
space:
mode:
authorRodney W. Grimes <rgrimes@FreeBSD.org>1995-05-30 06:41:30 +0000
committerRodney W. Grimes <rgrimes@FreeBSD.org>1995-05-30 06:41:30 +0000
commit8aca021104e452054c4f80ccd619ee2b0a62ccd0 (patch)
tree0120a2ddb2ce137d6e48ea88d29a1f29d61afc2c /chpass
parentb894ea8e082c419b09512dbd999c3afe4eebadaf (diff)
downloadpw-darwin-8aca021104e452054c4f80ccd619ee2b0a62ccd0.tar.gz
pw-darwin-8aca021104e452054c4f80ccd619ee2b0a62ccd0.tar.zst
pw-darwin-8aca021104e452054c4f80ccd619ee2b0a62ccd0.zip
Remove trailing whitespace.
Diffstat (limited to 'chpass')
-rw-r--r--chpass/chpass.c4
-rw-r--r--chpass/edit.c6
-rw-r--r--chpass/field.c4
-rw-r--r--chpass/util.c2
4 files changed, 8 insertions, 8 deletions
diff --git a/chpass/chpass.c b/chpass/chpass.c
index f101101..086413d 100644
--- a/chpass/chpass.c
+++ b/chpass/chpass.c
@@ -40,7 +40,7 @@ static char copyright[] =
#ifndef lint
static char sccsid[] = "From: @(#)chpass.c 8.4 (Berkeley) 4/2/94";
static char rcsid[] =
- "$Id$";
+ "$Id: chpass.c,v 1.2 1995/01/14 23:14:25 wollman Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -184,7 +184,7 @@ main(argc, argv)
(void)unlink(tempname);
tfd = pw_tmp();
}
-
+
pw_copy(pfd, tfd, pw);
if (!pw_mkdb())
diff --git a/chpass/edit.c b/chpass/edit.c
index b0ef308..612cb4a 100644
--- a/chpass/edit.c
+++ b/chpass/edit.c
@@ -126,19 +126,19 @@ display(fd, pw)
list[E_NAME].save = strdup(p);
if (!list[E_NAME].restricted || !uid)
(void)fprintf(fp, "Full Name: %s\n", p ? p : "");
-
+
p = strsep(&bp, ",");
if (p)
list[E_LOCATE].save = strdup(p);
if (!list[E_LOCATE].restricted || !uid)
(void)fprintf(fp, "Location: %s\n", p ? p : "");
-
+
p = strsep(&bp, ",");
if (p)
list[E_BPHONE].save = strdup(p);
if (!list[E_BPHONE].restricted || !uid)
(void)fprintf(fp, "Office Phone: %s\n", p ? p : "");
-
+
p = strsep(&bp, ",");
if (p)
list[E_HPHONE].save = strdup(p);
diff --git a/chpass/field.c b/chpass/field.c
index 898ba4d..6229e42 100644
--- a/chpass/field.c
+++ b/chpass/field.c
@@ -92,7 +92,7 @@ p_passwd(p, pw, ep)
warnx("can't save password entry");
return (1);
}
-
+
return (0);
}
@@ -170,7 +170,7 @@ p_class(p, pw, ep)
warnx("can't save entry");
return (1);
}
-
+
return (0);
}
diff --git a/chpass/util.c b/chpass/util.c
index ec4cc1f..03c7677 100644
--- a/chpass/util.c
+++ b/chpass/util.c
@@ -71,7 +71,7 @@ ttoa(tval)
else
*tbuf = '\0';
return (tbuf);
-}
+}
int
atot(p, store)