Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-tus
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-tus
Commits
eb1384f7
Unverified
Commit
eb1384f7
authored
Jan 03, 2021
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Constify based on Flexelint analysis
parent
684bdffe
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
tus_blob.c
src/tus_blob.c
+1
-1
tus_blob.h
src/tus_blob.h
+1
-1
vmod_tus.c
src/vmod_tus.c
+3
-2
No files found.
src/tus_blob.c
View file @
eb1384f7
...
...
@@ -258,7 +258,7 @@ tus_chksum_hdr(VRT_CTX, const char *hdr)
}
void
tus_chksum_update
(
VRT_CTX
,
struct
tus_chksum
*
c
,
tus_chksum_update
(
VRT_CTX
,
const
struct
tus_chksum
*
c
,
const
void
*
ptr
,
size_t
l
)
{
struct
vrt_blob
b
;
...
...
src/tus_blob.h
View file @
eb1384f7
...
...
@@ -31,7 +31,7 @@ int tus_chksum_fini(VRT_CTX);
struct
vmod_blobdigest_digest
*
tus_hash
(
const
char
*
,
size_t
);
struct
tus_chksum
*
tus_chksum_new
(
VRT_CTX
,
struct
vmod_blobdigest_digest
*
);
struct
tus_chksum
*
tus_chksum_hdr
(
VRT_CTX
,
const
char
*
);
void
tus_chksum_update
(
VRT_CTX
,
struct
tus_chksum
*
c
,
void
tus_chksum_update
(
VRT_CTX
,
const
struct
tus_chksum
*
c
,
const
void
*
ptr
,
size_t
l
);
VCL_BLOB
tus_chksum_final
(
VRT_CTX
,
struct
tus_chksum
*
c
);
VCL_BOOL
tus_chksum_equal
(
VRT_CTX
,
struct
tus_chksum
*
c
);
src/vmod_tus.c
View file @
eb1384f7
...
...
@@ -164,7 +164,8 @@ tus_schemeauth_valid(const char *schemeauth, const char **p)
}
static
struct
VPFX
(
tus_server
)
*
tus_server_new
(
VRT_CTX
,
const
char
*
vcl_name
,
struct
VARGS
(
server__init
)
*
args
)
tus_server_new
(
VRT_CTX
,
const
char
*
vcl_name
,
const
struct
VARGS
(
server__init
)
*
args
)
{
struct
VPFX
(
tus_server
)
*
tussrv
;
const
char
*
basedir
,
*
p
;
...
...
@@ -213,7 +214,7 @@ tus_server_new(VRT_CTX, const char *vcl_name, struct VARGS(server__init) *args)
static
struct
VPFX
(
tus_server
)
*
tus_server_ref
(
VRT_CTX
,
struct
VPFX
(
tus_server
)
*
tussrv
,
struct
VARGS
(
server__init
)
*
args
)
const
struct
VARGS
(
server__init
)
*
args
)
{
const
char
*
basedir
=
tussrv
->
basedir
;
...
...
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