From c0bfdbf212dc734d36773f58ba3568be98e9b24e Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Wed, 29 May 2013 16:09:24 +0000 Subject: [PATCH] * server/protocol.c (r_flush): Use int return type as per declaration of apr_vformatter(); no functional change. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1487528 13f79535-47bb-0310-9956-ffa450edef68 --- server/protocol.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/server/protocol.c b/server/protocol.c index c542317343..c1ecae705b 100644 --- a/server/protocol.c +++ b/server/protocol.c @@ -1670,7 +1670,8 @@ struct ap_vrprintf_data { char *buff; }; -static apr_status_t r_flush(apr_vformatter_buff_t *buff) +/* Flush callback for apr_vformatter; returns -1 on error. */ +static int r_flush(apr_vformatter_buff_t *buff) { /* callback function passed to ap_vformatter to be called when * vformatter needs to write into buff and buff.curpos > buff.endpos */ @@ -1691,7 +1692,7 @@ static apr_status_t r_flush(apr_vformatter_buff_t *buff) vd->vbuff.curpos = vd->buff; vd->vbuff.endpos = vd->buff + AP_IOBUFSIZE; - return APR_SUCCESS; + return 0; } AP_DECLARE(int) ap_vrprintf(request_rec *r, const char *fmt, va_list va) -- 2.40.0