* constify API
authorMichael Wallner <mike@php.net>
Sat, 21 May 2011 15:42:28 +0000 (15:42 +0000)
committerMichael Wallner <mike@php.net>
Sat, 21 May 2011 15:42:28 +0000 (15:42 +0000)
php_http_message_body.h

index b687207..4a621a4 100644 (file)
@@ -35,7 +35,7 @@ PHP_HTTP_API void php_http_message_body_to_stream(php_http_message_body_t *body,
 PHP_HTTP_API void php_http_message_body_to_callback(php_http_message_body_t *body, php_http_pass_callback_t cb, void *cb_arg, off_t offset, size_t forlen);
 PHP_HTTP_API void php_http_message_body_dtor(php_http_message_body_t *body);
 PHP_HTTP_API void php_http_message_body_free(php_http_message_body_t **body);
-PHP_HTTP_API php_stream_statbuf *php_http_message_body_stat(php_http_message_body_t *body);
+PHP_HTTP_API const php_stream_statbuf *php_http_message_body_stat(php_http_message_body_t *body);
 #define php_http_message_body_size(b) (php_http_message_body_stat((b))->sb.st_size)
 #define php_http_message_body_mtime(b) (php_http_message_body_stat((b))->sb.st_mtime)
 PHP_HTTP_API char *php_http_message_body_etag(php_http_message_body_t *body);