Fix bogon in compat re code.

This commit is contained in:
christos 2002-11-24 18:03:14 +00:00
parent 0eb35ef834
commit 9b564aed06
1 changed files with 7 additions and 5 deletions

View File

@ -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 */
@ -180,13 +180,15 @@ int maxlen_in_list __P((FILEDESC *));
# define RE_EXEC(re, p) regex((re), (p))
# define RE_FREE(re)
char *Re_pat, *Re_pat13, *Re_use;
char *regcmp(), *regex();
# elif HAVE_RE_COMP
char *Re_pat, *Re_pat13, *Re_use;
char *Re_error;
char *regcmp(), *regex();
# elif HAVE_RE_COMP
# 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)