From: wessels <> Date: Thu, 21 Jan 1999 02:43:00 +0000 (+0000) Subject: portability X-Git-Tag: SQUID_3_0_PRE1~2369 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c2352aa23cb763ae8901f46cbed14a98f93275cf;p=thirdparty%2Fsquid.git portability --- diff --git a/src/ftp.cc b/src/ftp.cc index 785e74ee11..67512653a2 100644 --- a/src/ftp.cc +++ b/src/ftp.cc @@ -1,6 +1,6 @@ /* - * $Id: ftp.cc,v 1.271 1999/01/20 19:27:08 wessels Exp $ + * $Id: ftp.cc,v 1.272 1999/01/20 19:43:00 wessels Exp $ * * DEBUG: section 9 File Transfer Protocol (FTP) * AUTHOR: Harvest Derived @@ -2318,11 +2318,9 @@ ftpAppendSuccessHeader(FtpStateData * ftpState) /* set standard stuff */ if (ftpState->restarted_offset) { /* Partial reply */ - HttpHdrRangeSpec range_spec = - { - ftpState->restarted_offset, - ftpState->size - ftpState->restarted_offset - }; + HttpHdrRangeSpec range_spec; + range_spec.offset = ftpState->restarted_offset; + range_spec.length = ftpState->size - ftpState->restarted_offset; httpReplySetHeaders(reply, 1.0, HTTP_PARTIAL_CONTENT, "Gatewaying", mime_type, ftpState->size - ftpState->restarted_offset, ftpState->mdtm, -2); httpHeaderAddContRange(&reply->header, range_spec, ftpState->size);