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
1cf8057f
Commit
1cf8057f
authored
Feb 02, 2016
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cave into to gcc49's paranoia...
parent
1c137872
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
vcc_compile.c
lib/libvcc/vcc_compile.c
+1
-1
vcc_vmod.c
lib/libvcc/vcc_vmod.c
+3
-2
No files found.
lib/libvcc/vcc_compile.c
View file @
1cf8057f
...
@@ -534,7 +534,7 @@ vcc_file_source(const struct vcp * const vcp, struct vsb *sb, const char *fn)
...
@@ -534,7 +534,7 @@ vcc_file_source(const struct vcp * const vcp, struct vsb *sb, const char *fn)
if
(
VFIL_searchpath
(
vcp
->
vcl_path
,
NULL
,
&
f
,
fn
,
&
fnp
)
||
f
==
NULL
)
{
if
(
VFIL_searchpath
(
vcp
->
vcl_path
,
NULL
,
&
f
,
fn
,
&
fnp
)
||
f
==
NULL
)
{
VSB_printf
(
sb
,
"Cannot read file '%s' (%s)
\n
"
,
VSB_printf
(
sb
,
"Cannot read file '%s' (%s)
\n
"
,
fnp
!=
NULL
?
fnp
:
fn
,
strerror
(
errno
));
fnp
!=
NULL
?
fnp
:
fn
,
strerror
(
errno
));
REPLACE
(
fnp
,
NULL
);
free
(
fnp
);
return
(
NULL
);
return
(
NULL
);
}
}
sp
=
vcc_new_source
(
f
,
NULL
,
fnp
);
sp
=
vcc_new_source
(
f
,
NULL
,
fnp
);
...
...
lib/libvcc/vcc_vmod.c
View file @
1cf8057f
...
@@ -136,12 +136,13 @@ vcc_ParseImport(struct vcc *tl)
...
@@ -136,12 +136,13 @@ vcc_ParseImport(struct vcc *tl)
fnpx
!=
NULL
?
fnpx
:
fn
);
fnpx
!=
NULL
?
fnpx
:
fn
);
VSB_printf
(
tl
->
sb
,
"
\t
dlerror: %s
\n
"
,
dlerror
());
VSB_printf
(
tl
->
sb
,
"
\t
dlerror: %s
\n
"
,
dlerror
());
vcc_ErrWhere
(
tl
,
mod
);
vcc_ErrWhere
(
tl
,
mod
);
REPLACE
(
fnpx
,
NULL
);
free
(
fnpx
);
return
;
return
;
}
}
AN
(
fnpx
);
fnp
=
TlDup
(
tl
,
fnpx
);
fnp
=
TlDup
(
tl
,
fnpx
);
REPLACE
(
fnpx
,
NULL
);
free
(
fnpx
);
bprintf
(
buf
,
"Vmod_%.*s_Data"
,
PF
(
mod
));
bprintf
(
buf
,
"Vmod_%.*s_Data"
,
PF
(
mod
));
vmd
=
dlsym
(
hdl
,
buf
);
vmd
=
dlsym
(
hdl
,
buf
);
...
...
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