summaryrefslogtreecommitdiff
path: root/games/quiz/rxp.c
diff options
context:
space:
mode:
authorPaul Janzen <pjanzen@cvs.openbsd.org>1998-08-19 07:42:28 +0000
committerPaul Janzen <pjanzen@cvs.openbsd.org>1998-08-19 07:42:28 +0000
commited884b9fa4509c09f0f7ab71efe57a4e83a2e055 (patch)
treeef9d859a0754785b42ea5cacb27aff54b5000315 /games/quiz/rxp.c
parentf4fc9566a4d35c0cc2bf8c7f1136287d8eec8c44 (diff)
tags, formatting, ANSI-fication, prototypes, de-typos, and the occasional
initialization, removal of unused variable, or other minor fix. Most changes are from or inspired by NetBSD.
Diffstat (limited to 'games/quiz/rxp.c')
-rw-r--r--games/quiz/rxp.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/games/quiz/rxp.c b/games/quiz/rxp.c
index f835913e4cd..b3e2d5b4ac2 100644
--- a/games/quiz/rxp.c
+++ b/games/quiz/rxp.c
@@ -1,3 +1,4 @@
+/* $OpenBSD: rxp.c,v 1.2 1998/08/19 07:41:00 pjanzen Exp $ */
/* $NetBSD: rxp.c,v 1.5 1995/04/22 10:17:00 cgd Exp $ */
/*-
@@ -41,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)rxp.c 8.1 (Berkeley) 5/31/93";
#else
-static char rcsid[] = "$NetBSD: rxp.c,v 1.5 1995/04/22 10:17:00 cgd Exp $";
+static char rcsid[] = "$OpenBSD: rxp.c,v 1.2 1998/08/19 07:41:00 pjanzen Exp $";
#endif
#endif /* not lint */
@@ -90,14 +91,14 @@ static int rxp__match __P((char *, int, Rxp_t *, Rxp_t *, char *));
int
rxp_compile(s)
- register char * s;
+ char * s;
{
return (rxp__compile(s, TRUE));
}
static int
rxp__compile(s, first)
- register char *s;
+ char *s;
int first;
{
static Rxp_t *rp;
@@ -195,7 +196,7 @@ rxp__compile(s, first)
*/
int
rxp_match(s)
- register char * s;
+ char * s;
{
return (rxp__match(s, TRUE, NULL, NULL, NULL));
}
@@ -210,8 +211,8 @@ rxp__match(s, first, j_succ, j_fail, sp_fail)
{
static Rxp_t *rp;
static char *sp;
- register int ch;
- Rxp_t *grp_end;
+ int ch;
+ Rxp_t *grp_end = NULL;
int err;
if (first) {