summaryrefslogtreecommitdiffstats
path: root/usr.sbin/mtree
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2004-08-01 18:32:17 +0000
committerderaadt <deraadt@openbsd.org>2004-08-01 18:32:17 +0000
commitf56bb1bd7ef91597b1c308891aae151d18bc0ac7 (patch)
tree9a33a25799920e408838c931715eda1fa2e2f5bc /usr.sbin/mtree
parentTrim include file list. (diff)
downloadwireguard-openbsd-f56bb1bd7ef91597b1c308891aae151d18bc0ac7.tar.xz
wireguard-openbsd-f56bb1bd7ef91597b1c308891aae151d18bc0ac7.zip
ansi cleanup; khalek@linuxgamers.net
Diffstat (limited to 'usr.sbin/mtree')
-rw-r--r--usr.sbin/mtree/compare.c18
-rw-r--r--usr.sbin/mtree/crc.c8
-rw-r--r--usr.sbin/mtree/create.c18
-rw-r--r--usr.sbin/mtree/misc.c6
-rw-r--r--usr.sbin/mtree/spec.c12
-rw-r--r--usr.sbin/mtree/verify.c9
6 files changed, 23 insertions, 48 deletions
diff --git a/usr.sbin/mtree/compare.c b/usr.sbin/mtree/compare.c
index d7f14d3a089..4492126250d 100644
--- a/usr.sbin/mtree/compare.c
+++ b/usr.sbin/mtree/compare.c
@@ -1,5 +1,5 @@
/* $NetBSD: compare.c,v 1.11 1996/09/05 09:56:48 mycroft Exp $ */
-/* $OpenBSD: compare.c,v 1.18 2004/05/02 17:35:08 millert Exp $ */
+/* $OpenBSD: compare.c,v 1.19 2004/08/01 18:32:20 deraadt Exp $ */
/*-
* Copyright (c) 1989, 1993
@@ -34,7 +34,7 @@
#if 0
static const char sccsid[] = "@(#)compare.c 8.1 (Berkeley) 6/6/93";
#else
-static const char rcsid[] = "$OpenBSD: compare.c,v 1.18 2004/05/02 17:35:08 millert Exp $";
+static const char rcsid[] = "$OpenBSD: compare.c,v 1.19 2004/08/01 18:32:20 deraadt Exp $";
#endif
#endif /* not lint */
@@ -79,10 +79,7 @@ static char *ftype(u_int);
} while (0) \
int
-compare(name, s, p)
- char *name;
- NODE *s;
- FTSENT *p;
+compare(char *name, NODE *s, FTSENT *p)
{
u_int32_t len, val;
int fd, label;
@@ -343,8 +340,7 @@ typeerr: LABEL;
}
char *
-inotype(type)
- u_int type;
+inotype(u_int type)
{
switch(type & S_IFMT) {
case S_IFBLK:
@@ -368,8 +364,7 @@ inotype(type)
}
static char *
-ftype(type)
- u_int type;
+ftype(u_int type)
{
switch(type) {
case F_BLOCK:
@@ -393,8 +388,7 @@ ftype(type)
}
char *
-rlink(name)
- char *name;
+rlink(char *name)
{
static char lbuf[MAXPATHLEN];
int len;
diff --git a/usr.sbin/mtree/crc.c b/usr.sbin/mtree/crc.c
index f67c0072223..026c657f303 100644
--- a/usr.sbin/mtree/crc.c
+++ b/usr.sbin/mtree/crc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crc.c,v 1.1 2004/05/02 17:55:53 millert Exp $ */
+/* $OpenBSD: crc.c,v 1.2 2004/08/01 18:32:20 deraadt Exp $ */
/* $NetBSD: crc.c,v 1.7 1996/02/27 21:29:53 jtc Exp $ */
/*-
@@ -38,7 +38,7 @@
static char sccsid[] = "@(#)crc.c 8.1 (Berkeley) 6/17/93";
static char rcsid[] = "$NetBSD: crc.c,v 1.7 1996/02/27 21:29:53 jtc Exp $";
#else
-static char rcsid[] = "$OpenBSD: crc.c,v 1.1 2004/05/02 17:55:53 millert Exp $";
+static char rcsid[] = "$OpenBSD: crc.c,v 1.2 2004/08/01 18:32:20 deraadt Exp $";
#endif
#endif /* not lint */
@@ -111,9 +111,7 @@ static const u_int32_t crctab[] = {
u_int32_t crc_total = ~0; /* The crc over a number of files. */
int
-crc(fd, cval, clen)
- int fd;
- u_int32_t *cval, *clen;
+crc(int fd, u_int32_t *cval, u_int32_t *clen)
{
u_char *p;
int nr;
diff --git a/usr.sbin/mtree/create.c b/usr.sbin/mtree/create.c
index b45a0f41ad2..04f42ff20b6 100644
--- a/usr.sbin/mtree/create.c
+++ b/usr.sbin/mtree/create.c
@@ -1,5 +1,5 @@
/* $NetBSD: create.c,v 1.11 1996/09/05 09:24:19 mycroft Exp $ */
-/* $OpenBSD: create.c,v 1.22 2004/07/09 16:22:03 deraadt Exp $ */
+/* $OpenBSD: create.c,v 1.23 2004/08/01 18:32:20 deraadt Exp $ */
/*-
* Copyright (c) 1989, 1993
@@ -34,7 +34,7 @@
#if 0
static const char sccsid[] = "@(#)create.c 8.1 (Berkeley) 6/6/93";
#else
-static const char rcsid[] = "$OpenBSD: create.c,v 1.22 2004/07/09 16:22:03 deraadt Exp $";
+static const char rcsid[] = "$OpenBSD: create.c,v 1.23 2004/08/01 18:32:20 deraadt Exp $";
#endif
#endif /* not lint */
@@ -133,9 +133,7 @@ cwalk(void)
}
static void
-statf(indent, p)
- int indent;
- FTSENT *p;
+statf(int indent, FTSENT *p)
{
struct group *gr;
struct passwd *pw;
@@ -263,12 +261,7 @@ statf(indent, p)
#define MAXMODE MBITS + 1
static int
-statd(t, parent, puid, pgid, pmode)
- FTS *t;
- FTSENT *parent;
- uid_t *puid;
- gid_t *pgid;
- mode_t *pmode;
+statd(FTS *t, FTSENT *parent, uid_t *puid, gid_t *pgid, mode_t *pmode)
{
FTSENT *p;
gid_t sgid;
@@ -359,8 +352,7 @@ statd(t, parent, puid, pgid, pmode)
}
static int
-dsort(a, b)
- const FTSENT **a, **b;
+dsort(const FTSENT **a, const FTSENT **b)
{
if (S_ISDIR((*a)->fts_statp->st_mode)) {
if (!S_ISDIR((*b)->fts_statp->st_mode))
diff --git a/usr.sbin/mtree/misc.c b/usr.sbin/mtree/misc.c
index 8c884fdd9b7..c6ebebcf662 100644
--- a/usr.sbin/mtree/misc.c
+++ b/usr.sbin/mtree/misc.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: misc.c,v 1.17 2004/05/02 17:55:53 millert Exp $ */
+/* $OpenBSD: misc.c,v 1.18 2004/08/01 18:32:20 deraadt Exp $ */
/* $NetBSD: misc.c,v 1.4 1995/03/07 21:26:23 cgd Exp $ */
/*-
@@ -72,9 +72,7 @@ static KEY keylist[] = {
};
u_int
-parsekey(name, needvaluep)
- char *name;
- int *needvaluep;
+parsekey(char *name, int *needvaluep)
{
KEY *k, tmp;
int keycompare(const void *, const void *);
diff --git a/usr.sbin/mtree/spec.c b/usr.sbin/mtree/spec.c
index 8f81c2af112..388410dd82f 100644
--- a/usr.sbin/mtree/spec.c
+++ b/usr.sbin/mtree/spec.c
@@ -1,5 +1,5 @@
/* $NetBSD: spec.c,v 1.6 1995/03/07 21:12:12 cgd Exp $ */
-/* $OpenBSD: spec.c,v 1.21 2004/07/09 16:22:03 deraadt Exp $ */
+/* $OpenBSD: spec.c,v 1.22 2004/08/01 18:32:20 deraadt Exp $ */
/*-
* Copyright (c) 1989, 1993
@@ -34,7 +34,7 @@
#if 0
static const char sccsid[] = "@(#)spec.c 8.1 (Berkeley) 6/6/93";
#else
-static const char rcsid[] = "$OpenBSD: spec.c,v 1.21 2004/07/09 16:22:03 deraadt Exp $";
+static const char rcsid[] = "$OpenBSD: spec.c,v 1.22 2004/08/01 18:32:20 deraadt Exp $";
#endif
#endif /* not lint */
@@ -168,9 +168,7 @@ noparent: error("no parent node");
}
static void
-set(t, ip)
- char *t;
- NODE *ip;
+set(char *t, NODE *ip)
{
int type;
char *kw, *val = NULL;
@@ -311,9 +309,7 @@ set(t, ip)
}
static void
-unset(t, ip)
- char *t;
- NODE *ip;
+unset(char *t, NODE *ip)
{
char *p;
diff --git a/usr.sbin/mtree/verify.c b/usr.sbin/mtree/verify.c
index aa6c34654a1..73f511e07a9 100644
--- a/usr.sbin/mtree/verify.c
+++ b/usr.sbin/mtree/verify.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: verify.c,v 1.14 2004/07/09 16:22:03 deraadt Exp $ */
+/* $OpenBSD: verify.c,v 1.15 2004/08/01 18:32:20 deraadt Exp $ */
/* $NetBSD: verify.c,v 1.10 1995/03/07 21:26:28 cgd Exp $ */
/*-
@@ -34,7 +34,7 @@
#if 0
static const char sccsid[] = "@(#)verify.c 8.1 (Berkeley) 6/6/93";
#else
-static const char rcsid[] = "$OpenBSD: verify.c,v 1.14 2004/07/09 16:22:03 deraadt Exp $";
+static const char rcsid[] = "$OpenBSD: verify.c,v 1.15 2004/08/01 18:32:20 deraadt Exp $";
#endif
#endif /* not lint */
@@ -153,10 +153,7 @@ extra:
}
static void
-miss(p, tail, len)
- NODE *p;
- char *tail;
- size_t len;
+miss(NODE *p, char *tail, size_t len)
{
int create;
char *tp;