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
d63c53e8
Commit
d63c53e8
authored
Sep 04, 2014
by
Lasse Karstensen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Squash warnings for warn_unused_result.
parent
92fd590b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
vlu.c
lib/libvarnish/vlu.c
+4
-1
vsl.c
lib/libvarnishapi/vsl.c
+7
-1
No files found.
lib/libvarnish/vlu.c
View file @
d63c53e8
...
...
@@ -96,6 +96,7 @@ vlu_dotelnet(struct vlu *l, char *p)
char
*
e
;
char
tno
[
3
];
int
i
;
ssize_t
r
=
0
;
e
=
l
->
buf
+
l
->
bufp
;
assert
(
p
>=
l
->
buf
&&
p
<
e
);
...
...
@@ -120,7 +121,9 @@ vlu_dotelnet(struct vlu *l, char *p)
/* Return WONT for these */
memcpy
(
tno
,
p
,
3
);
tno
[
1
]
=
(
char
)
252
;
(
void
)
write
(
l
->
telnet
,
tno
,
3
);
r
=
write
(
l
->
telnet
,
tno
,
3
);
if
(
r
!=
3
)
return
(
1
);
i
=
3
;
break
;
default:
...
...
lib/libvarnishapi/vsl.c
View file @
d63c53e8
...
...
@@ -408,6 +408,7 @@ VSL_WriteOpen(struct VSL_data *vsl, const char *name, int append, int unbuf)
{
const
char
head
[]
=
VSL_FILE_ID
;
FILE
*
f
;
size_t
r
=
0
;
f
=
fopen
(
name
,
append
?
"a"
:
"w"
);
if
(
f
==
NULL
)
{
...
...
@@ -417,7 +418,12 @@ VSL_WriteOpen(struct VSL_data *vsl, const char *name, int append, int unbuf)
if
(
unbuf
)
setbuf
(
f
,
NULL
);
if
(
0
==
ftell
(
f
))
fwrite
(
head
,
1
,
sizeof
head
,
f
);
r
=
fwrite
(
head
,
1
,
sizeof
head
,
f
);
if
(
r
!=
sizeof
head
)
{
vsl_diag
(
vsl
,
"%s"
,
strerror
(
errno
));
fclose
(
f
);
return
(
NULL
);
}
return
(
f
);
}
...
...
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