From: Rasmus Lerdorf Date: Wed, 24 May 2000 08:58:40 +0000 (+0000) Subject: @ Fix a couple of warnings in the gd and ldap modules X-Git-Tag: PRE_EIGHT_BYTE_ALLOC_PATCH~276 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=93feb306f8b92286ae5c330e0a7699846bc93816;p=php @ Fix a couple of warnings in the gd and ldap modules num_links is a long there --- diff --git a/ext/gd/gd.c b/ext/gd/gd.c index 63686cc9ca..48720e9bc2 100644 --- a/ext/gd/gd.c +++ b/ext/gd/gd.c @@ -1894,7 +1894,7 @@ static void php_imagettftext_common(INTERNAL_FUNCTION_PARAMETERS, int mode) { zval **IM, **PTSIZE, **ANGLE, **X, **Y, **C, **FONTNAME, **COL; - gdImagePtr im; + gdImagePtr im=NULL; int col, x, y, l=0, i; int brect[8]; double ptsize, angle; diff --git a/ext/ldap/ldap.c b/ext/ldap/ldap.c index b510e29a11..4f1d11d308 100644 --- a/ext/ldap/ldap.c +++ b/ext/ldap/ldap.c @@ -171,9 +171,9 @@ PHP_MINFO_FUNCTION(ldap) #endif if (LDAPG(max_links) == -1) { - snprintf(maxl, 31, "%d/unlimited", LDAPG(num_links) ); + snprintf(maxl, 31, "%ld/unlimited", LDAPG(num_links) ); } else { - snprintf(maxl, 31, "%d/%ld", LDAPG(num_links), LDAPG(max_links)); + snprintf(maxl, 31, "%ld/%ld", LDAPG(num_links), LDAPG(max_links)); } maxl[31] = 0;