From c2352aa23cb763ae8901f46cbed14a98f93275cf Mon Sep 17 00:00:00 2001 From: wessels <> Date: Thu, 21 Jan 1999 02:43:00 +0000 Subject: [PATCH] portability --- src/ftp.cc | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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); -- 2.47.3