diff options
author | 2002-02-16 21:27:05 +0000 | |
---|---|---|
committer | 2002-02-16 21:27:05 +0000 | |
commit | c72b5b24e14c03dd8b22104fbae0d3921fa2aa37 (patch) | |
tree | 1ac67aab11df5f96856c0e3015d691db7dc9e811 /lib/libcompat/regexp/regexp.c | |
parent | default to rsa keyfile path for non key generation operations where (diff) | |
download | wireguard-openbsd-c72b5b24e14c03dd8b22104fbae0d3921fa2aa37.tar.xz wireguard-openbsd-c72b5b24e14c03dd8b22104fbae0d3921fa2aa37.zip |
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
Diffstat (limited to 'lib/libcompat/regexp/regexp.c')
-rw-r--r-- | lib/libcompat/regexp/regexp.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/lib/libcompat/regexp/regexp.c b/lib/libcompat/regexp/regexp.c index 2b2abe42f5f..e473c53a9d3 100644 --- a/lib/libcompat/regexp/regexp.c +++ b/lib/libcompat/regexp/regexp.c @@ -1,4 +1,4 @@ -/* $OpenBSD: regexp.c,v 1.2 1996/07/24 05:39:11 downsj Exp $ */ +/* $OpenBSD: regexp.c,v 1.3 2002/02/16 21:27:26 millert Exp $ */ /* * regcomp and regexec -- regsub and regerror are elsewhere @@ -36,7 +36,7 @@ */ #ifndef lint -static char *rcsid = "$OpenBSD: regexp.c,v 1.2 1996/07/24 05:39:11 downsj Exp $"; +static char *rcsid = "$OpenBSD: regexp.c,v 1.3 2002/02/16 21:27:26 millert Exp $"; #endif /* not lint */ #include <regexp.h> @@ -177,18 +177,18 @@ static long regsize; /* Code size. */ #ifndef STATIC #define STATIC static #endif -STATIC char *reg __P((int, int *)); -STATIC char *regbranch __P((int *)); -STATIC char *regpiece __P((int *)); -STATIC char *regatom __P((int *)); -STATIC char *regnode __P((char)); -STATIC char *regnext __P((char *)); -STATIC void regc __P((char)); -STATIC void reginsert __P((char, char *)); -STATIC void regtail __P((char *, char *)); -STATIC void regoptail __P((char *, char *)); +STATIC char *reg(int, int *); +STATIC char *regbranch(int *); +STATIC char *regpiece(int *); +STATIC char *regatom(int *); +STATIC char *regnode(char); +STATIC char *regnext(char *); +STATIC void regc(char); +STATIC void reginsert(char, char *); +STATIC void regtail(char *, char *); +STATIC void regoptail(char *, char *); #ifdef STRCSPN -STATIC int strcspn __P((char *, char *)); +STATIC int strcspn(char *, char *); #endif /* @@ -777,14 +777,14 @@ static char **regendp; /* Ditto for endp. */ /* * Forwards. */ -STATIC int regtry __P((const regexp *, const char *)); -STATIC int regmatch __P((char *)); -STATIC int regrepeat __P((char *)); +STATIC int regtry(const regexp *, const char *); +STATIC int regmatch(char *); +STATIC int regrepeat(char *); #ifdef DEBUG int regnarrate = 0; -void regdump __P((regexp *)); -STATIC char *regprop __P((char *)); +void regdump(regexp *); +STATIC char *regprop(char *); #endif /* |