Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
e40edcef
Commit
e40edcef
authored
Sep 28, 2014
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
now that txt is const, fm can be, too
parent
d5bc442e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
cache_http.c
bin/varnishd/cache/cache_http.c
+3
-5
No files found.
bin/varnishd/cache/cache_http.c
View file @
e40edcef
...
...
@@ -786,8 +786,6 @@ HTTP_Encode(const struct http *fm, uint8_t *p0, unsigned l, unsigned how)
/*--------------------------------------------------------------------
* Decode byte string into http struct
*
* XXX: cannot make fm const because to->hd isn't.
*/
int
...
...
@@ -808,9 +806,9 @@ HTTP_Decode(struct http *to, const uint8_t *fm)
}
if
(
*
fm
==
'\0'
)
return
(
0
);
to
->
hd
[
to
->
nhd
].
b
=
(
void
*
)
fm
;
fm
=
(
void
*
)
strchr
((
void
*
)
fm
,
'\0'
);
to
->
hd
[
to
->
nhd
].
e
=
(
void
*
)
fm
;
to
->
hd
[
to
->
nhd
].
b
=
fm
;
fm
=
strchr
(
fm
,
'\0'
);
to
->
hd
[
to
->
nhd
].
e
=
fm
;
fm
++
;
if
(
to
->
vsl
!=
NULL
)
http_VSLH
(
to
,
to
->
nhd
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment