Update to 2.0.2

This commit is contained in:
Hye-Shik Chang 2003-11-10 13:38:32 +00:00
parent 758f4787b2
commit 0d90662f18
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=93653
3 changed files with 3 additions and 35 deletions

View file

@ -6,9 +6,9 @@
#
PORTNAME= mod_pcgi2
PORTVERSION= 2.0.1
PORTVERSION= 2.0.2
CATEGORIES= www zope
MASTER_SITES= http://www.zope.org/Members/phd/mod_pcgi2/
MASTER_SITES= http://zope.org/Members/phd/mod_pcgi2/mod_pcgi2/
DISTNAME= ${PORTNAME}-${PORTVERSION}-src
MAINTAINER= perky@FreeBSD.org

View file

@ -1 +1 @@
MD5 (mod_pcgi2-2.0.1-src.tar.gz) = 5721f2e957aac842a56087e082aab6e0
MD5 (mod_pcgi2-2.0.2-src.tar.gz) = 343242bf25141f228b3d2dd0e5526732

View file

@ -1,32 +0,0 @@
--- mod_pcgi2.c.orig Wed May 8 21:15:01 2002
+++ mod_pcgi2.c Sun May 19 09:30:33 2002
@@ -166,12 +166,12 @@
/* Merge resource records */
-#define CREATE_pcgi_mergef(name, addr, maxsz) static void pcgi_merge_##name##(pcgiResource *r, pcgiResource *base, pcgiResource *overrides) \
+#define CREATE_pcgi_mergef(name, addr, maxsz) static void pcgi_merge_##name(pcgiResource *r, pcgiResource *base, pcgiResource *overrides) \
{ \
- if (overrides->##addr##[0]) { \
- strncpy(r->##addr##, overrides->##addr##, maxsz); \
- } else if (base->##addr##[0]) { \
- strncpy(r->##addr##, base->##addr##, maxsz); \
+ if (overrides->addr[0]) { \
+ strncpy(r->addr, overrides->addr, maxsz); \
+ } else if (base->addr[0]) { \
+ strncpy(r->addr, base->addr, maxsz); \
} \
}
@@ -314,9 +314,9 @@
/* Parse command parameters */
-#define CREATE_pcgi_setf(name, addr, maxsz) static const char *pcgi_set_##name##(cmd_parms *parms, void *r, const char *arg) \
+#define CREATE_pcgi_setf(name, addr, maxsz) static const char *pcgi_set_##name(cmd_parms *parms, void *r, const char *arg) \
{ \
- strncpy(((pcgiResource *)r)->##addr##, arg, maxsz); \
+ strncpy(((pcgiResource *)r)->addr, arg, maxsz); \
return NULL; \
}