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
ef1322df
Commit
ef1322df
authored
10 years ago
by
Dan Fandrich
Browse files
Options
Downloads
Patches
Plain Diff
Added a few more const where possible
parent
970ce28c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
lib/dotdot.c
+1
-1
1 addition, 1 deletion
lib/dotdot.c
lib/dotdot.h
+1
-1
1 addition, 1 deletion
lib/dotdot.h
lib/splay.c
+2
-2
2 additions, 2 deletions
lib/splay.c
tests/unit/unit1395.c
+1
-1
1 addition, 1 deletion
tests/unit/unit1395.c
with
5 additions
and
5 deletions
lib/dotdot.c
+
1
−
1
View file @
ef1322df
...
...
@@ -47,7 +47,7 @@
*
* an allocated dedotdotified output string
*/
char
*
Curl_dedotdotify
(
char
*
input
)
char
*
Curl_dedotdotify
(
const
char
*
input
)
{
size_t
inlen
=
strlen
(
input
);
char
*
clone
;
...
...
This diff is collapsed.
Click to expand it.
lib/dotdot.h
+
1
−
1
View file @
ef1322df
...
...
@@ -21,5 +21,5 @@
* KIND, either express or implied.
*
***************************************************************************/
char
*
Curl_dedotdotify
(
char
*
input
);
char
*
Curl_dedotdotify
(
const
char
*
input
);
#endif
This diff is collapsed.
Click to expand it.
lib/splay.c
+
2
−
2
View file @
ef1322df
...
...
@@ -101,7 +101,7 @@ struct Curl_tree *Curl_splayinsert(struct timeval i,
struct
Curl_tree
*
t
,
struct
Curl_tree
*
node
)
{
static
struct
timeval
KEY_NOTUSED
=
{
-
1
,
-
1
};
/* will *NEVER* appear */
static
const
struct
timeval
KEY_NOTUSED
=
{
-
1
,
-
1
};
/* will *NEVER* appear */
if
(
node
==
NULL
)
return
t
;
...
...
@@ -223,7 +223,7 @@ int Curl_splayremovebyaddr(struct Curl_tree *t,
struct
Curl_tree
*
removenode
,
struct
Curl_tree
**
newroot
)
{
static
struct
timeval
KEY_NOTUSED
=
{
-
1
,
-
1
};
/* will *NEVER* appear */
static
const
struct
timeval
KEY_NOTUSED
=
{
-
1
,
-
1
};
/* will *NEVER* appear */
struct
Curl_tree
*
x
;
if
(
!
t
||
!
removenode
)
...
...
This diff is collapsed.
Click to expand it.
tests/unit/unit1395.c
+
1
−
1
View file @
ef1322df
...
...
@@ -44,7 +44,7 @@ UNITTEST_START
unsigned
int
i
;
int
fails
=
0
;
struct
dotdot
pairs
[]
=
{
const
struct
dotdot
pairs
[]
=
{
{
"/a/b/c/./../../g"
,
"/a/g"
},
{
"mid/content=5/../6"
,
"mid/6"
},
{
"/hello/../moo"
,
"/moo"
},
...
...
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