summaryrefslogtreecommitdiff
path: root/ext/ldap/ldap.c
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2000-05-24 08:58:40 +0000
committerRasmus Lerdorf <rasmus@php.net>2000-05-24 08:58:40 +0000
commit93feb306f8b92286ae5c330e0a7699846bc93816 (patch)
tree8b971ee2347d5bb807ec31a8374d4b6c8dcbce50 /ext/ldap/ldap.c
parente3e75eb2da2476884a1d6877140d71939e492ad7 (diff)
downloadphp-git-93feb306f8b92286ae5c330e0a7699846bc93816.tar.gz
@ Fix a couple of warnings in the gd and ldap modules
num_links is a long there
Diffstat (limited to 'ext/ldap/ldap.c')
-rw-r--r--ext/ldap/ldap.c4
1 files changed, 2 insertions, 2 deletions
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;