Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-blobcode
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
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-blobcode
Commits
7f59f107
Commit
7f59f107
authored
Jan 04, 2016
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
a bit of BSD-conforming whitespace fixes
parent
642059d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
vmod_convert.c
src/vmod_convert.c
+5
-4
No files found.
src/vmod_convert.c
View file @
7f59f107
...
...
@@ -92,7 +92,7 @@ event(VRT_CTX, struct vmod_priv *priv, enum vcl_event_e event)
*/
static
VCL_BLOB
base64_encode
(
struct
ws
*
ws
,
const
enum
encoding
enc
,
struct
vmod_priv
*
rblob
,
const
char
*
in
,
size_t
inlen
)
const
char
*
in
,
size_t
inlen
)
{
struct
b64_alphabet
*
alpha
=
&
b64_alphabet
[
enc
];
struct
wb_s
wb
;
...
...
@@ -189,7 +189,7 @@ hexnibblelc(char c)
static
VCL_BLOB
hex_encode_va
(
struct
ws
*
ws
,
struct
vmod_priv
*
rblob
,
const
ssize_t
len
,
const
char
*
in
,
va_list
va
)
const
char
*
in
,
va_list
va
)
{
struct
wb_s
wb
[
1
];
char
*
p
;
...
...
@@ -246,7 +246,7 @@ hex_encode_va(struct ws *ws, struct vmod_priv *rblob, const ssize_t len,
static
VCL_BLOB
hex_encode
(
struct
ws
*
ws
,
struct
vmod_priv
*
rblob
,
const
ssize_t
len
,
const
char
*
in
,
...)
const
char
*
in
,
...)
{
va_list
ap
;
VCL_BLOB
r
;
...
...
@@ -289,7 +289,7 @@ vmod_encode(VRT_CTX, VCL_ENUM encs, VCL_BLOB b) {
case
HEX
:
case
HEXLC
:
// XXX: lower-case?
r
=
hex_encode
(
ctx
->
ws
,
tmp
,
b
->
len
,
b
->
priv
,
vrt_magic_string_end
);
vrt_magic_string_end
);
break
;
default:
WRONG
(
"Illegal encoding"
);
...
...
@@ -323,6 +323,7 @@ vmod_transcode(VRT_CTX, VCL_ENUM decs, VCL_ENUM encs, const char *p, ...) {
return
NULL
;
return
r
->
priv
;
}
VCL_BLOB
vmod_transcode_blob
(
VRT_CTX
,
VCL_ENUM
decs
,
VCL_ENUM
encs
,
VCL_BLOB
b
)
{
enum
encoding
dec
=
parse_encoding
(
decs
);
...
...
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