diff options
author | jlam <jlam@pkgsrc.org> | 2007-09-05 17:06:55 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2007-09-05 17:06:55 +0000 |
commit | a61eb2f649f35a709ff87106fba2736a60cec7d2 (patch) | |
tree | 8cec1b8cc756d60ba6aa13f9f6ddd821331a1dbb /security | |
parent | f523dd773229a2594b03cb0d5e41decc322d74f6 (diff) | |
download | pkgsrc-a61eb2f649f35a709ff87106fba2736a60cec7d2.tar.gz |
Move variable declarations to start of block to appease older C compilers.
Diffstat (limited to 'security')
-rw-r--r-- | security/courier-authlib/distinfo | 3 | ||||
-rw-r--r-- | security/courier-authlib/patches/patch-ad | 22 |
2 files changed, 24 insertions, 1 deletions
diff --git a/security/courier-authlib/distinfo b/security/courier-authlib/distinfo index c17f60cd409..68327671e9d 100644 --- a/security/courier-authlib/distinfo +++ b/security/courier-authlib/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.9 2007/08/10 17:57:21 jlam Exp $ +$NetBSD: distinfo,v 1.10 2007/09/05 17:06:55 jlam Exp $ SHA1 (courier-authlib-0.59.3.tar.bz2) = d82dd91bac9e51755c9da98736cff96228be4e29 RMD160 (courier-authlib-0.59.3.tar.bz2) = cd0f0868a8fc09824c590430527b07809a12b2a7 Size (courier-authlib-0.59.3.tar.bz2) = 2109183 bytes SHA1 (patch-aa) = 81cd5a4afadd54dd0303ac9d475aa4892aec6e42 SHA1 (patch-ab) = 802b0636cddbeac782d7bdea3e0060e058cdc65f +SHA1 (patch-ad) = d43b78dcb6b125d436508934a4fa13f6dffb0ff1 diff --git a/security/courier-authlib/patches/patch-ad b/security/courier-authlib/patches/patch-ad new file mode 100644 index 00000000000..ba71d4e4b58 --- /dev/null +++ b/security/courier-authlib/patches/patch-ad @@ -0,0 +1,22 @@ +$NetBSD: patch-ad,v 1.1 2007/09/05 17:06:55 jlam Exp $ + +--- authldaplib.c.orig 2007-01-20 12:03:22.000000000 -0500 ++++ authldaplib.c +@@ -126,7 +126,7 @@ authldap_free_config removed - no longer + static char **l_get_values(LDAP *ld, LDAPMessage *entry, const char *attribut) + { + struct berval **p=ldap_get_values_len(ld, entry, attribut); +- int n; ++ int i, n; + char **a; + + if (!p) +@@ -144,8 +144,6 @@ static char **l_get_values(LDAP *ld, LDA + return NULL; + } + +- int i; +- + for (i=0; i<n; i++) + { + if ((a[i]=malloc(p[i]->bv_len+1)) == NULL) |