]> granicus.if.org Git - apache/commitdiff
* server/protocol.c (r_flush): Use int return type as per declaration
authorJoe Orton <jorton@apache.org>
Wed, 29 May 2013 16:09:24 +0000 (16:09 +0000)
committerJoe Orton <jorton@apache.org>
Wed, 29 May 2013 16:09:24 +0000 (16:09 +0000)
  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

index c5423173433bed6af7cac90dc6f3c4e650801526..c1ecae705bc9b1242912d3869530ddc1d367fef0 100644 (file)
@@ -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)