summaryrefslogtreecommitdiffstats
path: root/fortune/fortune/fortune.c
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2002-11-24 18:03:14 +0000
committerchristos <christos@NetBSD.org>2002-11-24 18:03:14 +0000
commita4ba423c7bca10bfe78d22c576abbad87b9d3b12 (patch)
tree75dd969fba9631f77225a2829bd3289bbbb2b63d /fortune/fortune/fortune.c
parente7b5f8efc8929eb6a1b1b9788a6ee1430378ccae (diff)
downloadbsdgames-darwin-a4ba423c7bca10bfe78d22c576abbad87b9d3b12.tar.gz
bsdgames-darwin-a4ba423c7bca10bfe78d22c576abbad87b9d3b12.tar.zst
bsdgames-darwin-a4ba423c7bca10bfe78d22c576abbad87b9d3b12.zip
Fix bogon in compat re code.
Diffstat (limited to 'fortune/fortune/fortune.c')
-rw-r--r--fortune/fortune/fortune.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/fortune/fortune/fortune.c b/fortune/fortune/fortune.c
index b65f78cd..c509352c 100644
--- a/fortune/fortune/fortune.c
+++ b/fortune/fortune/fortune.c
@@ -1,4 +1,4 @@
-/* $NetBSD: fortune.c,v 1.37 2002/07/20 08:36:23 grant Exp $ */
+/* $NetBSD: fortune.c,v 1.38 2002/11/24 18:03:14 christos Exp $ */
/*-
* Copyright (c) 1986, 1993
@@ -46,7 +46,7 @@ __COPYRIGHT("@(#) Copyright (c) 1986, 1993\n\
#if 0
static char sccsid[] = "@(#)fortune.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: fortune.c,v 1.37 2002/07/20 08:36:23 grant Exp $");
+__RCSID("$NetBSD: fortune.c,v 1.38 2002/11/24 18:03:14 christos Exp $");
#endif
#endif /* not lint */
@@ -181,12 +181,14 @@ int maxlen_in_list __P((FILEDESC *));
# define RE_FREE(re)
char *Re_pat, *Re_pat13, *Re_use;
-char *Re_error;
-
char *regcmp(), *regex();
+
# elif HAVE_RE_COMP
+char *Re_pat, *Re_pat13, *Re_use;
+char *Re_error;
+
# define RE_INIT(re)
-# define RE_COMP(re, p) ((re) = re_comp(p))
+# define RE_COMP(re, p) (Re_error = re_comp(p))
# define RE_ERROR(re) Re_error
# define RE_OK(re) (Re_error == NULL)
# define RE_EXEC(re, p) re_exec(p)