Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvdp-pesi
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
uplex-varnish
libvdp-pesi
Commits
f8858355
Unverified
Commit
f8858355
authored
Jan 02, 2021
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Constify
parent
6593b997
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
13 deletions
+13
-13
node.c
src/node.c
+9
-9
node.h
src/node.h
+1
-1
node_assert.h
src/node_assert.h
+3
-3
No files found.
src/node.c
View file @
f8858355
...
...
@@ -58,7 +58,7 @@
* node finalizers
*/
static
void
fini_final
(
struct
vdp_ctx
*
,
struct
node
*
);
static
void
fini_subreq
(
struct
vdp_ctx
*
,
struct
node
*
);
static
void
fini_subreq
(
const
struct
vdp_ctx
*
,
struct
node
*
);
static
void
fini_data
(
struct
vdp_ctx
*
,
struct
node
*
);
/* ============================================================
...
...
@@ -363,7 +363,7 @@ node_insert(struct bytes_tree *tree, struct node *parent,
}
static
void
set_unpending
(
struct
bytes_tree
*
tree
,
struct
node
*
node
)
set_unpending
(
const
struct
bytes_tree
*
tree
,
struct
node
*
node
)
{
struct
node
*
parent
;
...
...
@@ -606,7 +606,7 @@ fini_final(struct vdp_ctx *vdx, struct node *node)
}
static
void
fini_subreq
(
struct
vdp_ctx
*
vdx
,
struct
node
*
node
)
fini_subreq
(
const
struct
vdp_ctx
*
vdx
,
struct
node
*
node
)
{
struct
req
*
subreq
;
struct
boc
*
boc
=
NULL
;
...
...
@@ -737,7 +737,7 @@ static const uint8_t gzip_hdr[] = {
};
static
void
gzip_tailbuf
(
uint8_t
tailbuf
[
GZIP_TAILBUF_SZ
],
struct
nexus_gzip
*
gz
)
gzip_tailbuf
(
uint8_t
tailbuf
[
GZIP_TAILBUF_SZ
],
const
struct
nexus_gzip
*
gz
)
{
AN
(
gz
->
is
);
AZ
(
gz
->
up
);
...
...
@@ -757,7 +757,7 @@ gzip_tailbuf(uint8_t tailbuf[GZIP_TAILBUF_SZ], struct nexus_gzip *gz)
static
int
push_crc
(
struct
vdp_ctx
*
vdx
,
struct
bytes_tree
*
tree
,
struct
node
*
node
,
const
struct
node
*
next
)
const
struct
node
*
node
,
const
struct
node
*
next
)
{
struct
node
*
nex
;
struct
nexus_gzip
*
parent_gzip
;
...
...
@@ -809,7 +809,7 @@ push_crc(struct vdp_ctx *vdx, struct bytes_tree *tree,
static
int
push_data
(
struct
vdp_ctx
*
vdx
,
struct
bytes_tree
*
tree
,
struct
node
*
node
,
const
struct
node
*
next
)
const
struct
node
*
node
,
const
struct
node
*
next
)
{
const
void
*
p
;
enum
vdp_action
act
;
...
...
@@ -847,7 +847,7 @@ push_data(struct vdp_ctx *vdx, struct bytes_tree *tree,
*/
static
int
worklist_push
(
struct
vdp_ctx
*
vdx
,
struct
bytes_tree
*
tree
,
struct
node_head
*
work
)
const
struct
node_head
*
work
)
{
struct
node
*
node
,
*
next
,
*
parent
;
int
retval
=
0
;
...
...
@@ -922,7 +922,7 @@ worklist_push(struct vdp_ctx *vdx, struct bytes_tree *tree,
static
void
worklist_set_delivered
(
struct
vdp_ctx
*
vdx
,
struct
bytes_tree
*
tree
,
struct
node_head
*
work
)
const
struct
node_head
*
work
)
{
struct
node
*
node
,
*
parent
,
*
tmp
;
...
...
@@ -961,7 +961,7 @@ worklist_set_delivered(struct vdp_ctx *vdx, struct bytes_tree *tree,
} while(0)
static
void
worklist_unpend
(
struct
vdp_ctx
*
vdx
,
struct
bytes_tree
*
tree
,
worklist_unpend
(
const
struct
vdp_ctx
*
vdx
,
struct
bytes_tree
*
tree
,
struct
node_head
*
work
)
{
struct
node
*
node
,
*
next
;
...
...
src/node.h
View file @
f8858355
...
...
@@ -217,7 +217,7 @@ struct node {
*/
static
inline
void
node_mutate_prep
(
struct
bytes_tree
*
tree
,
struct
node
*
node
)
node_mutate_prep
(
const
struct
bytes_tree
*
tree
,
struct
node
*
node
)
{
CHECK_OBJ_NOTNULL
(
node
,
NODE_MAGIC
);
CHECK_OBJ_NOTNULL
(
node
->
parent
,
NODE_MAGIC
);
...
...
src/node_assert.h
View file @
f8858355
...
...
@@ -48,10 +48,10 @@ enum check_state {
#define assert_node(n, c) (void)0
#define assert_nexus(n, c) (void)0
#else
static
inline
void
assert_node
(
struct
node
*
node
,
enum
check_state
check
);
static
inline
void
assert_node
(
const
struct
node
*
node
,
enum
check_state
check
);
static
inline
void
assert_nexus
(
struct
node
*
node
,
enum
check_state
nexcheck
)
assert_nexus
(
const
struct
node
*
node
,
enum
check_state
nexcheck
)
{
struct
node
*
child
;
enum
check_state
check
;
...
...
@@ -78,7 +78,7 @@ assert_nexus(struct node *node, enum check_state nexcheck)
}
static
inline
void
assert_node
(
struct
node
*
node
,
enum
check_state
check
)
assert_node
(
const
struct
node
*
node
,
enum
check_state
check
)
{
CHECK_OBJ_NOTNULL
(
node
,
NODE_MAGIC
);
...
...
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