diff options
author | Warner Losh <imp@FreeBSD.org> | 2002-03-22 01:42:45 +0000 |
---|---|---|
committer | Warner Losh <imp@FreeBSD.org> | 2002-03-22 01:42:45 +0000 |
commit | 3f330d7d1a3fe98c53faf01d0f30c0a9fbb37c41 (patch) | |
tree | f17746dd42b66c7b55fe407e00b5fc176ebe67a5 /usr.bin/tr | |
parent | d3cb5ded92a4fcf21400c9742ca884549bebc99e (diff) | |
download | src-3f330d7d1a3fe98c53faf01d0f30c0a9fbb37c41.tar.gz src-3f330d7d1a3fe98c53faf01d0f30c0a9fbb37c41.zip |
remove __P
Notes
Notes:
svn path=/head/; revision=92922
Diffstat (limited to 'usr.bin/tr')
-rw-r--r-- | usr.bin/tr/extern.h | 3 | ||||
-rw-r--r-- | usr.bin/tr/str.c | 18 | ||||
-rw-r--r-- | usr.bin/tr/tr.c | 4 |
3 files changed, 13 insertions, 12 deletions
diff --git a/usr.bin/tr/extern.h b/usr.bin/tr/extern.h index fbd71fa8bf8b..477320eaec66 100644 --- a/usr.bin/tr/extern.h +++ b/usr.bin/tr/extern.h @@ -31,6 +31,7 @@ * SUCH DAMAGE. * * @(#)extern.h 8.1 (Berkeley) 6/6/93 + * $FreeBSD$ */ typedef struct { @@ -47,4 +48,4 @@ typedef struct { #define NCHARS (UCHAR_MAX + 1) /* Number of possible characters. */ #define OOBCH (UCHAR_MAX + 1) /* Out of band character value. */ -int next __P((STR *)); +int next(STR *); diff --git a/usr.bin/tr/str.c b/usr.bin/tr/str.c index 92ced8b565d7..46bf34085466 100644 --- a/usr.bin/tr/str.c +++ b/usr.bin/tr/str.c @@ -51,13 +51,13 @@ static const char sccsid[] = "@(#)str.c 8.2 (Berkeley) 4/28/95"; #include "extern.h" -static int backslash __P((STR *)); -static int bracket __P((STR *)); -static int c_class __P((const void *, const void *)); -static void genclass __P((STR *)); -static void genequiv __P((STR *)); -static int genrange __P((STR *)); -static void genseq __P((STR *)); +static int backslash(STR *); +static int bracket(STR *); +static int c_class(const void *, const void *); +static void genclass(STR *); +static void genequiv(STR *); +static int genrange(STR *); +static void genseq(STR *); int next(s) @@ -152,7 +152,7 @@ bracket(s) typedef struct { const char *name; - int (*func) __P((int)); + int (*func)(int); int *set; } CLASS; @@ -187,7 +187,7 @@ static void genclass(s) STR *s; { - int cnt, (*func) __P((int)); + int cnt, (*func)(int); CLASS *cp, tmp; int *p; diff --git a/usr.bin/tr/tr.c b/usr.bin/tr/tr.c index 53bd2650dff2..359ef05927ac 100644 --- a/usr.bin/tr/tr.c +++ b/usr.bin/tr/tr.c @@ -94,8 +94,8 @@ static int string1[NCHARS] = { STR s1 = { STRING1, NORMAL, 0, OOBCH, { 0, OOBCH }, NULL, NULL }; STR s2 = { STRING2, NORMAL, 0, OOBCH, { 0, OOBCH }, NULL, NULL }; -static void setup __P((int *, char *, STR *, int)); -static void usage __P((void)); +static void setup(int *, char *, STR *, int); +static void usage(void); int main(argc, argv) |