cURL / Mailing Lists / curl-users / Single Mail

curl-users

[ curl-Bugs-422715 ] compiler warnings under RH

From: <noreply_at_sourceforge.net>
Date: Wed, 09 May 2001 10:59:46 -0700

Bugs item #422715, was updated on 2001-05-09 10:59
You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=100976&aid=422715&group_id=976

Category: compile problem
Group: wrong content
Status: Open
Resolution: None
Priority: 5
Submitted By: Sander Gates (gatos1997)
Assigned to: Daniel Stenberg (bagder)
Summary: compiler warnings under RH

Initial Comment:
Hey, so after the stunnel fix, I've also looked into
some compiler warnings listed below:
  http.c: In function `Curl_http_done':
  http.c:375: warning: assignment from incompatible
pointer type
  http.c: In function `Curl_http':
  http.c:718: warning: assignment from incompatible
pointer type
  http.c:723: warning: assignment from incompatible
pointer type

Still compiles and works, but sort of nasty warnings.
Anyway, opening up the corresponding lines of code, I
made the following explicit conversions:

< data->fread = http->storefread; /* restore */
> data->fread = (size_t (*)(char *, size_t, size_t,
void *)) http->storefread; /* restore */

< http->storefread = data->fread; /* backup */
> http->storefread = (size_t (*)(char *, size_t,
size_t, FILE *))data->fread; /* backup */

< data->fread = (size_t (*)(char *, size_t, size_t,
FILE *))Curl_FormReader; /* set the read function to
read from the
> data->fread = (size_t (*)(char *, size_t, size_t,
void *))Curl_FormReader; /* set the read function to
read from the

Not sure if this is the right way to go about it, but
I think it serves my needs. Thought maybe you'd be
interested as well.

----------------------------------------------------------------------

You can respond by visiting:
http://sourceforge.net/tracker/?func=detail&atid=100976&aid=422715&group_id=976
Received on 2001-05-09