summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2004-08-08 00:05:09 +0000
committerderaadt <deraadt@openbsd.org>2004-08-08 00:05:09 +0000
commit210ae517d2c1e4b1fca50dee2c18d5d4b5595b76 (patch)
tree17b2a7e776ad4eecc13591e92791d7aa52a35583
parentNeed pmap_unuse_final() too; Martin Reindl. (diff)
downloadwireguard-openbsd-210ae517d2c1e4b1fca50dee2c18d5d4b5595b76.tar.xz
wireguard-openbsd-210ae517d2c1e4b1fca50dee2c18d5d4b5595b76.zip
spacing
-rw-r--r--usr.sbin/authpf/authpf.c4
-rw-r--r--usr.sbin/gpioctl/gpioctl.c8
-rw-r--r--usr.sbin/pwd_mkdb/pwd_mkdb.c32
3 files changed, 19 insertions, 25 deletions
diff --git a/usr.sbin/authpf/authpf.c b/usr.sbin/authpf/authpf.c
index 7c49ea0f3b8..12f86c694df 100644
--- a/usr.sbin/authpf/authpf.c
+++ b/usr.sbin/authpf/authpf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: authpf.c,v 1.84 2004/06/14 20:38:19 cedric Exp $ */
+/* $OpenBSD: authpf.c,v 1.85 2004/08/08 00:05:09 deraadt Exp $ */
/*
* Copyright (C) 1998 - 2002 Bob Beck (beck@openbsd.org).
@@ -146,7 +146,7 @@ main(int argc, char *argv[])
shell = pw->pw_shell;
login_close(lc);
-
+
if (strcmp(shell, PATH_AUTHPF_SHELL)) {
syslog(LOG_ERR, "wrong shell for user %s, uid %u",
pw->pw_name, pw->pw_uid);
diff --git a/usr.sbin/gpioctl/gpioctl.c b/usr.sbin/gpioctl/gpioctl.c
index 5962a34638e..c0b0afc1127 100644
--- a/usr.sbin/gpioctl/gpioctl.c
+++ b/usr.sbin/gpioctl/gpioctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gpioctl.c,v 1.1 2004/06/03 19:13:24 grange Exp $ */
+/* $OpenBSD: gpioctl.c,v 1.2 2004/08/08 00:05:09 deraadt Exp $ */
/*
* Copyright (c) 2004 Alexander Yurchenko <grange@openbsd.org>
*
@@ -142,7 +142,7 @@ pinread(int pin)
op.gp_pin = pin;
if (ioctl(devfd, GPIOPINREAD, &op) == -1)
err(1, "GPIOPINREAD");
-
+
if (quiet)
return;
@@ -222,9 +222,9 @@ usage(void)
{
extern char *__progname;
- fprintf(stderr, "usage:\t%s [-hq] [-d device] [pin] [0 | 1 | 2]\n",
+ fprintf(stderr, "usage: %s [-hq] [-d device] [pin] [0 | 1 | 2]\n",
__progname);
- fprintf(stderr, "\t%s [-hq] [-d device] -c pin [flags]\n",
+ fprintf(stderr, " %s [-hq] [-d device] -c pin [flags]\n",
__progname);
exit(1);
diff --git a/usr.sbin/pwd_mkdb/pwd_mkdb.c b/usr.sbin/pwd_mkdb/pwd_mkdb.c
index 0e59d8b04d3..fe5866ec2c6 100644
--- a/usr.sbin/pwd_mkdb/pwd_mkdb.c
+++ b/usr.sbin/pwd_mkdb/pwd_mkdb.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pwd_mkdb.c,v 1.37 2003/06/28 20:37:29 deraadt Exp $ */
+/* $OpenBSD: pwd_mkdb.c,v 1.38 2004/08/08 00:05:09 deraadt Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
@@ -41,7 +41,7 @@ static const char copyright[] =
#if 0
static const char sccsid[] = "from: @(#)pwd_mkdb.c 8.5 (Berkeley) 4/20/94";
#else
-static const char rcsid[] = "$OpenBSD: pwd_mkdb.c,v 1.37 2003/06/28 20:37:29 deraadt Exp $";
+static const char rcsid[] = "$OpenBSD: pwd_mkdb.c,v 1.38 2004/08/08 00:05:09 deraadt Exp $";
#endif
#endif /* not lint */
@@ -147,7 +147,7 @@ main(int argc, char **argv)
if (argc != 1 || (makeold && secureonly) ||
(username && (*username == '+' || *username == '-')))
usage();
-
+
if ((grp = getgrnam(SHADOW_GROUP)) == NULL)
errx(1, "cannot find `%s' in the group database, aborting",
SHADOW_GROUP);
@@ -195,7 +195,7 @@ main(int argc, char **argv)
if (st.st_size / 128 > openinfo.nelem)
openinfo.nelem = st.st_size / 128;
- /* If only updating a single record, stash the old uid */
+ /* If only updating a single record, stash the old uid */
if (username) {
dp = dbopen(_PATH_MP_DB, O_RDONLY, 0, DB_HASH, NULL);
if (dp == NULL)
@@ -381,11 +381,9 @@ fmt: errno = EFTYPE; /* XXX */
return (1);
}
-void
-cp(from, to, mode)
- char *from, *to;
- mode_t mode;
-{
+void
+cp(char *from, char *to, mode_t mode)
+{
static char buf[MAXBSIZE];
int from_fd, rcount, to_fd, wcount;
@@ -413,8 +411,7 @@ cp(from, to, mode)
}
void
-mv(from, to)
- char *from, *to;
+mv(char *from, char *to)
{
char buf[MAXPATHLEN * 2];
@@ -428,8 +425,7 @@ mv(from, to)
}
void
-error(name)
- char *name;
+error(char *name)
{
warn("%s", name);
@@ -438,8 +434,7 @@ error(name)
}
void
-errorx(name)
- char *name;
+errorx(char *name)
{
warnx("%s", name);
@@ -496,13 +491,12 @@ void
db_store(FILE *fp, FILE *oldfp, DB *edp, DB *dp, struct passwd *pw,
int keytype, char *username, uid_t olduid)
{
- int flags = 0;
- int dbmode, found = 0;
- u_int cnt;
char *p, *t, buf[LINE_MAX * 2], tbuf[1024];
+ int flags = 0, dbmode, found = 0;
+ static int firsttime = 1;
DBT data, key;
size_t len;
- static int firsttime = 1;
+ u_int cnt;
/* If given a username just add that record to the existing db. */
dbmode = username ? 0 : R_NOOVERWRITE;