mirror of
https://github.com/curl/curl.git
synced 2026-07-26 17:47:28 +03:00
lib1900.c: fix compilation warning
warning: declaration of 'time' shadows a global declaration
This commit is contained in:
parent
1c44f83e54
commit
b8a986be06
1 changed files with 3 additions and 3 deletions
|
|
@ -57,7 +57,7 @@ write_callback(void *contents, size_t size, size_t nmemb, void *userp)
|
|||
int parse_url_file(const char *filename)
|
||||
{
|
||||
FILE *f;
|
||||
int time;
|
||||
int filetime;
|
||||
char buf[200];
|
||||
|
||||
num_handles = 0;
|
||||
|
|
@ -69,8 +69,8 @@ int parse_url_file(const char *filename)
|
|||
return 0;
|
||||
|
||||
while(!feof(f)) {
|
||||
if(fscanf(f, "%d %s\n", &time, buf)) {
|
||||
urltime[num_handles] = time;
|
||||
if(fscanf(f, "%d %s\n", &filetime, buf)) {
|
||||
urltime[num_handles] = filetime;
|
||||
urlstring[num_handles] = strdup(buf);
|
||||
num_handles++;
|
||||
continue;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue