Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TLMSP curl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CYBER - Cyber Security
TS 103 523 MSP
TLMSP
TLMSP curl
Commits
80d30125
Commit
80d30125
authored
20 years ago
by
Dan Fandrich
Browse files
Options
Downloads
Patches
Plain Diff
Make some more arrays of pointers const.
parent
0e591829
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib/arpa_telnet.h
+2
-2
2 additions, 2 deletions
lib/arpa_telnet.h
lib/parsedate.c
+9
-6
9 additions, 6 deletions
lib/parsedate.c
lib/version.c
+1
-1
1 addition, 1 deletion
lib/version.c
with
12 additions
and
9 deletions
lib/arpa_telnet.h
+
2
−
2
View file @
80d30125
...
...
@@ -39,7 +39,7 @@
/*
* The telnet options represented as strings
*/
static
const
char
*
telnetoptions
[]
=
static
const
char
*
const
telnetoptions
[]
=
{
"BINARY"
,
"ECHO"
,
"RCP"
,
"SUPPRESS GO AHEAD"
,
"NAME"
,
"STATUS"
,
"TIMING MARK"
,
"RCTE"
,
...
...
@@ -78,7 +78,7 @@ static const char *telnetoptions[]=
/*
* Then those numbers represented as strings:
*/
static
const
char
*
telnetcmds
[]
=
static
const
char
*
const
telnetcmds
[]
=
{
"EOF"
,
"SUSP"
,
"ABORT"
,
"EOR"
,
"SE"
,
"NOP"
,
"DMARK"
,
"BRK"
,
"IP"
,
"AO"
,
...
...
This diff is collapsed.
Click to expand it.
lib/parsedate.c
+
9
−
6
View file @
80d30125
...
...
@@ -86,11 +86,14 @@
static
time_t
Curl_parsedate
(
const
char
*
date
);
static
const
char
*
wkday
[]
=
{
"Mon"
,
"Tue"
,
"Wed"
,
"Thu"
,
"Fri"
,
"Sat"
,
"Sun"
};
static
const
char
*
weekday
[]
=
{
"Monday"
,
"Tuesday"
,
"Wednesday"
,
"Thursday"
,
static
const
char
*
const
wkday
[]
=
{
"Mon"
,
"Tue"
,
"Wed"
,
"Thu"
,
"Fri"
,
"Sat"
,
"Sun"
};
static
const
char
*
const
weekday
[]
=
{
"Monday"
,
"Tuesday"
,
"Wednesday"
,
"Thursday"
,
"Friday"
,
"Saturday"
,
"Sunday"
};
static
const
char
*
month
[]
=
{
"Jan"
,
"Feb"
,
"Mar"
,
"Apr"
,
"May"
,
"Jun"
,
"Jul"
,
"Aug"
,
"Sep"
,
"Oct"
,
"Nov"
,
"Dec"
};
static
const
char
*
const
month
[]
=
{
"Jan"
,
"Feb"
,
"Mar"
,
"Apr"
,
"May"
,
"Jun"
,
"Jul"
,
"Aug"
,
"Sep"
,
"Oct"
,
"Nov"
,
"Dec"
};
struct
tzinfo
{
const
char
*
name
;
...
...
@@ -153,7 +156,7 @@ static const struct tzinfo tz[]= {
static
int
checkday
(
char
*
check
,
size_t
len
)
{
int
i
;
const
char
**
what
;
const
char
*
const
*
what
;
bool
found
=
FALSE
;
if
(
len
>
3
)
what
=
&
weekday
[
0
];
...
...
@@ -172,7 +175,7 @@ static int checkday(char *check, size_t len)
static
int
checkmonth
(
char
*
check
)
{
int
i
;
const
char
**
what
;
const
char
*
const
*
what
;
bool
found
=
FALSE
;
what
=
&
month
[
0
];
...
...
This diff is collapsed.
Click to expand it.
lib/version.c
+
1
−
1
View file @
80d30125
...
...
@@ -146,7 +146,7 @@ char *curl_version(void)
/* data for curl_version_info */
static
const
char
*
protocols
[]
=
{
static
const
char
*
const
protocols
[]
=
{
#ifndef CURL_DISABLE_FTP
"ftp"
,
#endif
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment