summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-05-30 12:00:06 +0000
committerSascha Schumann <sas@php.net>1999-05-30 12:00:06 +0000
commit31da7331fe0704d6b2c6a2961ef5e09c23018417 (patch)
tree95b55ad4a76d3888b08db69d3611d1fa8cda56c0
parent577340bb9f009783729b079508916429ec0d44a0 (diff)
downloadphp-git-31da7331fe0704d6b2c6a2961ef5e09c23018417.tar.gz
kill some warnings
-rw-r--r--main/main.c6
-rw-r--r--main/php_ini.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/main/main.c b/main/main.c
index 494897b668..1b509fa44b 100644
--- a/main/main.c
+++ b/main/main.c
@@ -589,12 +589,12 @@ static void php_message_handler_for_zend(long message, void *data)
snprintf(memory_leak_buf, 512, "%s: Freeing 0x%0.8lX (%d bytes), allocated in %s on line %d<br>\n", SG(request_info).path_translated, (unsigned long)ptr, t->size,t->filename,t->lineno);
#endif
} else {
- uint leak_count = (uint) data;
+ unsigned long leak_count = (unsigned long) data;
#if WIN32||WINNT
- snprintf(memory_leak_buf, 512, "Last leak repeated %d time%s\n", leak_count, (leak_count>1?"s":""));
+ snprintf(memory_leak_buf, 512, "Last leak repeated %ld time%s\n", leak_count, (leak_count>1?"s":""));
#else
- snprintf(memory_leak_buf, 512, "%s: Last leak repeated %d time%s\n", SG(request_info).path_translated, leak_count, (leak_count>1?"s":""));
+ snprintf(memory_leak_buf, 512, "%s: Last leak repeated %ld time%s\n", SG(request_info).path_translated, leak_count, (leak_count>1?"s":""));
#endif
}
# if WIN32||WINNT
diff --git a/main/php_ini.c b/main/php_ini.c
index 73c0206848..e5b219eea6 100644
--- a/main/php_ini.c
+++ b/main/php_ini.c
@@ -344,7 +344,7 @@ PHPAPI void display_ini_entries(zend_module_entry *module)
}
PUTS("<table border=5 width=\"600\">\n");
php_info_print_table_header(3, "Directive", "Local Value", "Master Value");
- zend_hash_apply_with_argument(&known_directives, (int (*)(void *, void *)) php_ini_displayer, (void *) module_number);
+ zend_hash_apply_with_argument(&known_directives, (int (*)(void *, void *)) php_ini_displayer, (void *) (long) module_number);
PUTS("</table>\n");
}