summaryrefslogtreecommitdiff
path: root/main/snprintf.c
diff options
context:
space:
mode:
authorKalle Sommer Nielsen <kalle@php.net>2010-08-17 12:49:19 +0000
committerKalle Sommer Nielsen <kalle@php.net>2010-08-17 12:49:19 +0000
commit159cd6916dccf814cf3594f558b99f4800d78224 (patch)
treeae33e88365b14d8ffd818ac9b40540f827e715a2 /main/snprintf.c
parenta12f6d9312256a4e1dd4091099add8397fd01e12 (diff)
downloadphp-git-159cd6916dccf814cf3594f558b99f4800d78224.tar.gz
Fixed compiler warnings in main/
Diffstat (limited to 'main/snprintf.c')
-rw-r--r--main/snprintf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/main/snprintf.c b/main/snprintf.c
index f0b7caa3ec..f6490bc432 100644
--- a/main/snprintf.c
+++ b/main/snprintf.c
@@ -1220,7 +1220,7 @@ static void strx_printv(int *ccp, char *buf, size_t len, const char *format, va_
PHPAPI int ap_php_slprintf(char *buf, size_t len, const char *format,...) /* {{{ */
{
- int cc;
+ unsigned int cc;
va_list ap;
va_start(ap, format);
@@ -1236,7 +1236,7 @@ PHPAPI int ap_php_slprintf(char *buf, size_t len, const char *format,...) /* {{{
PHPAPI int ap_php_vslprintf(char *buf, size_t len, const char *format, va_list ap) /* {{{ */
{
- int cc;
+ unsigned int cc;
strx_printv(&cc, buf, len, format, ap);
if (cc >= len) {