mirror of
https://github.com/moparisthebest/curl
synced 2024-11-13 13:05:03 -05:00
and moved back the month array to a static one since the ftp code won't need
it anymore
This commit is contained in:
parent
33f69c0546
commit
adbe3eefb6
@ -84,14 +84,12 @@
|
|||||||
|
|
||||||
#include <curl/curl.h>
|
#include <curl/curl.h>
|
||||||
|
|
||||||
#include "parsedate.h"
|
|
||||||
|
|
||||||
static time_t Curl_parsedate(const char *date);
|
static time_t Curl_parsedate(const char *date);
|
||||||
|
|
||||||
static const char *wkday[] = {"Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"};
|
static const char *wkday[] = {"Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"};
|
||||||
static const char *weekday[] = { "Monday", "Tuesday", "Wednesday", "Thursday",
|
static const char *weekday[] = { "Monday", "Tuesday", "Wednesday", "Thursday",
|
||||||
"Friday", "Saturday", "Sunday" };
|
"Friday", "Saturday", "Sunday" };
|
||||||
const char *Curl_month[]= { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul",
|
static const char *month[]= { "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul",
|
||||||
"Aug", "Sep", "Oct", "Nov", "Dec" };
|
"Aug", "Sep", "Oct", "Nov", "Dec" };
|
||||||
|
|
||||||
struct tzinfo {
|
struct tzinfo {
|
||||||
@ -177,7 +175,7 @@ static int checkmonth(char *check)
|
|||||||
const char **what;
|
const char **what;
|
||||||
bool found= FALSE;
|
bool found= FALSE;
|
||||||
|
|
||||||
what = &Curl_month[0];
|
what = &month[0];
|
||||||
for(i=0; i<12; i++) {
|
for(i=0; i<12; i++) {
|
||||||
if(curl_strequal(check, what[0])) {
|
if(curl_strequal(check, what[0])) {
|
||||||
found=TRUE;
|
found=TRUE;
|
||||||
|
Loading…
Reference in New Issue
Block a user