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
8eea87d1
Commit
8eea87d1
authored
Aug 21, 2014
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Be consistent about size_t and ssize_t, the latter is better.
parent
4e56f03f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
10 deletions
+11
-10
cache.h
bin/varnishd/cache/cache.h
+3
-2
cache_esi_deliver.c
bin/varnishd/cache/cache_esi_deliver.c
+1
-1
cache_gzip.c
bin/varnishd/cache/cache_gzip.c
+7
-7
No files found.
bin/varnishd/cache/cache.h
View file @
8eea87d1
...
...
@@ -929,8 +929,9 @@ void VGZ_Ibuf(struct vgz *, const void *, ssize_t len);
int
VGZ_IbufEmpty
(
const
struct
vgz
*
vg
);
void
VGZ_Obuf
(
struct
vgz
*
,
void
*
,
ssize_t
len
);
int
VGZ_ObufFull
(
const
struct
vgz
*
vg
);
enum
vgzret_e
VGZ_Gzip
(
struct
vgz
*
,
const
void
**
,
size_t
*
len
,
enum
vgz_flag
);
enum
vgzret_e
VGZ_Gunzip
(
struct
vgz
*
,
const
void
**
,
size_t
*
len
);
enum
vgzret_e
VGZ_Gzip
(
struct
vgz
*
,
const
void
**
,
ssize_t
*
len
,
enum
vgz_flag
);
enum
vgzret_e
VGZ_Gunzip
(
struct
vgz
*
,
const
void
**
,
ssize_t
*
len
);
enum
vgzret_e
VGZ_Destroy
(
struct
vgz
**
);
void
VGZ_UpdateObj
(
const
struct
vfp_ctx
*
,
const
struct
vgz
*
);
vdp_bytes
VDP_gunzip
;
...
...
bin/varnishd/cache/cache_esi_deliver.c
View file @
8eea87d1
...
...
@@ -257,7 +257,7 @@ ESI_Deliver(struct req *req)
uint8_t
tailbuf
[
8
+
5
];
int
isgzip
;
struct
vgz
*
vgz
=
NULL
;
size_t
dl
;
s
s
ize_t
dl
;
const
void
*
dp
;
int
i
;
struct
objiter
*
oi
;
...
...
bin/varnishd/cache/cache_gzip.c
View file @
8eea87d1
...
...
@@ -193,7 +193,7 @@ VGZ_ObufFull(const struct vgz *vg)
/*--------------------------------------------------------------------*/
enum
vgzret_e
VGZ_Gunzip
(
struct
vgz
*
vg
,
const
void
**
pptr
,
size_t
*
plen
)
VGZ_Gunzip
(
struct
vgz
*
vg
,
const
void
**
pptr
,
s
s
ize_t
*
plen
)
{
int
i
;
ssize_t
l
;
...
...
@@ -226,7 +226,7 @@ VGZ_Gunzip(struct vgz *vg, const void **pptr, size_t *plen)
/*--------------------------------------------------------------------*/
enum
vgzret_e
VGZ_Gzip
(
struct
vgz
*
vg
,
const
void
**
pptr
,
size_t
*
plen
,
enum
vgz_flag
flags
)
VGZ_Gzip
(
struct
vgz
*
vg
,
const
void
**
pptr
,
s
s
ize_t
*
plen
,
enum
vgz_flag
flags
)
{
int
i
;
int
zflg
;
...
...
@@ -288,7 +288,7 @@ int __match_proto__(vdp_bytes)
VDP_gunzip
(
struct
req
*
req
,
enum
vdp_action
act
,
const
void
*
ptr
,
ssize_t
len
)
{
enum
vgzret_e
vr
;
size_t
dl
;
s
s
ize_t
dl
;
const
void
*
dp
;
struct
worker
*
wrk
;
struct
vgz
*
vg
;
...
...
@@ -336,7 +336,7 @@ VGZ_WrwGunzip(struct req *req, struct vgz *vg, const void *ibuf,
ssize_t
ibufl
)
{
enum
vgzret_e
vr
;
size_t
dl
;
s
s
ize_t
dl
;
const
void
*
dp
;
struct
worker
*
wrk
;
...
...
@@ -509,7 +509,7 @@ vfp_gunzip_pull(struct vfp_ctx *vc, struct vfp_entry *vfe, void *p,
struct
vgz
*
vg
;
enum
vgzret_e
vr
=
VGZ_ERROR
;
const
void
*
dp
;
size_t
dl
;
s
s
ize_t
dl
;
enum
vfp_status
vp
=
VFP_OK
;
CHECK_OBJ_NOTNULL
(
vc
,
VFP_CTX_MAGIC
);
...
...
@@ -563,7 +563,7 @@ vfp_gzip_pull(struct vfp_ctx *vc, struct vfp_entry *vfe, void *p,
struct
vgz
*
vg
;
enum
vgzret_e
vr
=
VGZ_ERROR
;
const
void
*
dp
;
size_t
dl
;
s
s
ize_t
dl
;
enum
vfp_status
vp
=
VFP_ERROR
;
CHECK_OBJ_NOTNULL
(
vc
,
VFP_CTX_MAGIC
);
...
...
@@ -617,7 +617,7 @@ vfp_testgunzip_pull(struct vfp_ctx *vc, struct vfp_entry *vfe, void *p,
struct
vgz
*
vg
;
enum
vgzret_e
vr
=
VGZ_ERROR
;
const
void
*
dp
;
size_t
dl
;
s
s
ize_t
dl
;
enum
vfp_status
vp
;
CHECK_OBJ_NOTNULL
(
vc
,
VFP_CTX_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