]> granicus.if.org Git - curl/commitdiff
removed a parameter from the Curl_http_readwrite_headers() prototype to remove
authorDaniel Stenberg <daniel@haxx.se>
Thu, 7 Jan 2010 22:48:28 +0000 (22:48 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 7 Jan 2010 22:48:28 +0000 (22:48 +0000)
the need for the struct forward declaration from http.h which caused problems
with gcc 2.96 and quite frankly the parameter wasn't necessary anyway

lib/http.c
lib/http.h
lib/transfer.c

index 76738b880417761475d8cc5a30bbed48c5bb6e71..2cc1154fc9d2d66ef39944137c64762ebe38c2ef 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -3080,11 +3080,11 @@ static CURLcode header_append(struct SessionHandle *data,
  */
 CURLcode Curl_http_readwrite_headers(struct SessionHandle *data,
                                      struct connectdata *conn,
-                                     struct SingleRequest *k,
                                      ssize_t *nread,
                                      bool *stop_reading)
 {
   CURLcode result;
+  struct SingleRequest *k = &data->req;
 
   /* header line within buffer loop */
   do {
index f6781cc992a5484e2b4bffe6162ebfb53034b4d5..155027d9945cbd4e2c93738fbfc4bce9c5d2ff4b 100644 (file)
@@ -25,8 +25,6 @@
  ***************************************************************************/
 #ifndef CURL_DISABLE_HTTP
 
-struct SingleRequest;
-
 extern const struct Curl_handler Curl_handler_http;
 
 #ifdef USE_SSL
@@ -127,7 +125,6 @@ struct HTTP {
 
 CURLcode Curl_http_readwrite_headers(struct SessionHandle *data,
                                      struct connectdata *conn,
-                                     struct SingleRequest *k,
                                      ssize_t *nread,
                                      bool *stop_reading);
 
index 636beedb09599073e46746b2dd7232005f8aa619..3c5821692e0eb06444826587407dddbc42523560 100644 (file)
@@ -5,7 +5,7 @@
  *                            | (__| |_| |  _ <| |___
  *                             \___|\___/|_| \_\_____|
  *
- * Copyright (C) 1998 - 2009, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
  *
  * This software is licensed as described in the file COPYING, which
  * you should have received as part of this distribution. The terms
@@ -441,7 +441,7 @@ static CURLcode readwrite_data(struct SessionHandle *data,
     if(k->header) {
       /* we are in parse-the-header-mode */
       bool stop_reading = FALSE;
-      result = Curl_http_readwrite_headers(data, conn, k, &nread, &stop_reading);
+      result = Curl_http_readwrite_headers(data, conn, &nread, &stop_reading);
       if(result)
         return result;
       if(stop_reading)