]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
portability
authorwessels <>
Thu, 21 Jan 1999 02:43:00 +0000 (02:43 +0000)
committerwessels <>
Thu, 21 Jan 1999 02:43:00 +0000 (02:43 +0000)
src/ftp.cc

index 785e74ee11482f4e2b6c81c8be005c9b39eb8501..67512653a25783a8ac83859f5de7b76e1f3a61e2 100644 (file)
@@ -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);