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
5002303d
Commit
5002303d
authored
Feb 24, 2015
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove unsed VLU_Data() and VLU_File() functions.
parent
2a9fc5ee
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
40 deletions
+0
-40
vlu.h
include/vlu.h
+0
-2
vlu.c
lib/libvarnish/vlu.c
+0
-38
No files found.
include/vlu.h
View file @
5002303d
...
...
@@ -33,8 +33,6 @@
typedef
int
(
vlu_f
)(
void
*
,
const
char
*
);
struct
vlu
*
VLU_New
(
void
*
priv
,
vlu_f
*
func
,
unsigned
bufsize
);
int
VLU_Fd
(
int
fd
,
struct
vlu
*
l
);
int
VLU_File
(
FILE
*
f
,
struct
vlu
*
l
);
int
VLU_Data
(
const
void
*
ptr
,
int
len
,
struct
vlu
*
l
);
void
VLU_Destroy
(
struct
vlu
*
l
);
void
VLU_SetTelnet
(
struct
vlu
*
l
,
int
fd
);
...
...
lib/libvarnish/vlu.c
View file @
5002303d
...
...
@@ -182,41 +182,3 @@ VLU_Fd(int fd, struct vlu *l)
l
->
bufp
+=
i
;
return
(
LineUpProcess
(
l
));
}
int
VLU_File
(
FILE
*
f
,
struct
vlu
*
l
)
{
char
*
p
;
CHECK_OBJ_NOTNULL
(
l
,
LINEUP_MAGIC
);
p
=
fgets
(
l
->
buf
+
l
->
bufp
,
l
->
bufl
-
l
->
bufp
,
f
);
if
(
p
==
NULL
)
return
(
-
1
);
l
->
bufp
=
strlen
(
l
->
buf
);
return
(
LineUpProcess
(
l
));
}
int
VLU_Data
(
const
void
*
ptr
,
int
len
,
struct
vlu
*
l
)
{
const
char
*
p
;
int
i
=
0
;
p
=
ptr
;
CHECK_OBJ_NOTNULL
(
l
,
LINEUP_MAGIC
);
if
(
len
<
0
)
len
=
strlen
(
p
);
while
(
len
>
0
)
{
i
=
len
;
if
(
i
>
l
->
bufl
-
l
->
bufp
)
i
=
l
->
bufl
-
l
->
bufp
;
memcpy
(
l
->
buf
+
l
->
bufp
,
p
,
i
);
l
->
bufp
+=
i
;
p
+=
i
;
len
-=
i
;
i
=
LineUpProcess
(
l
);
if
(
i
)
break
;
}
return
(
i
);
}
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