summaryrefslogtreecommitdiffstats
path: root/chpass
diff options
context:
space:
mode:
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)