From 6a7dde29e7daf744b3cffe24f4743536fc209972 Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Thu, 28 Aug 2003 16:28:33 +0000 Subject: kill warnings --- ext/standard/fsock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/standard/fsock.c') diff --git a/ext/standard/fsock.c b/ext/standard/fsock.c index b59e9db8c2..4932965383 100644 --- a/ext/standard/fsock.c +++ b/ext/standard/fsock.c @@ -56,7 +56,7 @@ static void php_fsockopen_stream(INTERNAL_FUNCTION_PARAMETERS, int persistent) } if (port > 0) { - hostname_len = spprintf(&hostname, 0, "%s:%d", host, port); + hostname_len = spprintf(&hostname, 0, "%s:%ld", host, port); } else { hostname_len = host_len; hostname = host; -- cgit v1.2.1