put variable declaration at top of block to allow building with gcc2; ok kili@

This commit is contained in:
naddy 2009-03-24 16:49:08 +00:00
parent 8454c10de3
commit 9db7360ea3
2 changed files with 22 additions and 1 deletions

View File

@ -1,8 +1,9 @@
# $OpenBSD: Makefile,v 1.5 2008/02/03 15:06:47 kili Exp $
# $OpenBSD: Makefile,v 1.6 2009/03/24 16:49:08 naddy Exp $
COMMENT= HTTP caching proxy
DISTNAME= polipo-1.0.4
PKGNAME= ${DISTNAME}p0
CATEGORIES= www
HOMEPAGE= http://www.pps.jussieu.fr/~jch/software/polipo/

View File

@ -0,0 +1,20 @@
$OpenBSD: patch-forbidden_c,v 1.1 2009/03/24 16:49:08 naddy Exp $
--- forbidden.c.orig Tue Mar 24 09:43:44 2009
+++ forbidden.c Tue Mar 24 09:44:02 2009
@@ -190,6 +190,7 @@ parseDomainFile(AtomPtr file,
DomainPtr **domains_return, regex_t **regex_return)
{
struct stat ss;
+ regex_t *regex;
int rc;
if(*domains_return) {
@@ -263,8 +264,6 @@ parseDomainFile(AtomPtr file,
free(domains);
domains = NULL;
}
-
- regex_t *regex;
if(rlen > 0) {
regex = malloc(sizeof(regex_t));