mirror of
https://github.com/moparisthebest/curl
synced 2024-11-10 11:35:07 -05:00
Constified from arguments.
This commit is contained in:
parent
c8355c27e9
commit
caf880be18
@ -154,7 +154,7 @@ static const struct tzinfo tz[]= {
|
|||||||
0 monday - 6 sunday
|
0 monday - 6 sunday
|
||||||
*/
|
*/
|
||||||
|
|
||||||
static int checkday(char *check, size_t len)
|
static int checkday(const char *check, size_t len)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
const char * const *what;
|
const char * const *what;
|
||||||
@ -173,7 +173,7 @@ static int checkday(char *check, size_t len)
|
|||||||
return found?i:-1;
|
return found?i:-1;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int checkmonth(char *check)
|
static int checkmonth(const char *check)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
const char * const *what;
|
const char * const *what;
|
||||||
@ -193,7 +193,7 @@ static int checkmonth(char *check)
|
|||||||
/* return the time zone offset between GMT and the input one, in number
|
/* return the time zone offset between GMT and the input one, in number
|
||||||
of seconds or -1 if the timezone wasn't found/legal */
|
of seconds or -1 if the timezone wasn't found/legal */
|
||||||
|
|
||||||
static int checktz(char *check)
|
static int checktz(const char *check)
|
||||||
{
|
{
|
||||||
unsigned int i;
|
unsigned int i;
|
||||||
const struct tzinfo *what;
|
const struct tzinfo *what;
|
||||||
|
Loading…
Reference in New Issue
Block a user