mirror of
https://github.com/curl/curl.git
synced 2026-08-24 15:33:37 +03:00
rename struct FILE to FILEPROTO, to prevent it from causing trouble with
the plain old FILE typedef.
This commit is contained in:
parent
533519cc9c
commit
e2f7030202
2 changed files with 4 additions and 5 deletions
|
|
@ -95,18 +95,17 @@
|
|||
CURLcode Curl_file_connect(struct connectdata *conn)
|
||||
{
|
||||
char *real_path = curl_unescape(conn->path, 0);
|
||||
struct FILE *file;
|
||||
struct FILEPROTO *file;
|
||||
int fd;
|
||||
#if defined(WIN32) || defined(__EMX__)
|
||||
int i;
|
||||
char *actual_path;
|
||||
#endif
|
||||
|
||||
file = (struct FILE *)malloc(sizeof(struct FILE));
|
||||
file = (struct FILEPROTO *)calloc(sizeof(struct FILEPROTO), 1);
|
||||
if(!file)
|
||||
return CURLE_OUT_OF_MEMORY;
|
||||
|
||||
memset(file, 0, sizeof(struct FILE));
|
||||
conn->proto.file = file;
|
||||
|
||||
#if defined(WIN32) || defined(__EMX__)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue