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
ef377655
Commit
ef377655
authored
Oct 07, 2020
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge verrno into vas, it's too trivial.
parent
e6be754f
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
18 additions
and
41 deletions
+18
-41
Makefile.am
include/Makefile.am
+0
-1
vas.h
include/vas.h
+4
-1
verrno.h
include/verrno.h
+0
-11
Makefile.am
lib/libvarnish/Makefile.am
+0
-1
vas.c
lib/libvarnish/vas.c
+14
-0
verrno.c
lib/libvarnish/verrno.c
+0
-27
No files found.
include/Makefile.am
View file @
ef377655
...
...
@@ -65,7 +65,6 @@ nobase_pkginclude_HEADERS += \
vbm.h
\
vcl.h
\
vcs.h
\
verrno.h
\
vmod_abi.h
\
vqueue.h
\
vre.h
\
...
...
include/vas.h
View file @
ef377655
...
...
@@ -40,7 +40,10 @@
#ifndef VAS_H_INCLUDED
#define VAS_H_INCLUDED
#include "verrno.h"
#include <errno.h>
const
char
*
vstrerror
(
int
e
);
enum
vas_e
{
VAS_WRONG
,
...
...
include/verrno.h
deleted
100644 → 0
View file @
e6be754f
/*-
* Written by Nils Goroll based upon a draft by Poul-Henning Kamp
*
* This file is in the public domain.
*
* trivial strerror() wrapper never returning NULL
*/
#include <errno.h>
const
char
*
vstrerror
(
int
e
);
lib/libvarnish/Makefile.am
View file @
ef377655
...
...
@@ -22,7 +22,6 @@ libvarnish_la_SOURCES = \
vcli_serve.c
\
vct.c
\
venc.c
\
verrno.c
\
version.c
\
vev.c
\
vfil.c
\
...
...
lib/libvarnish/vas.c
View file @
ef377655
...
...
@@ -41,6 +41,20 @@
#include "vas.h"
const
char
*
vstrerror
(
int
e
)
{
const
char
*
p
;
int
oerrno
=
errno
;
p
=
strerror
(
e
);
if
(
p
!=
NULL
)
return
(
p
);
errno
=
oerrno
;
return
(
"strerror(3) returned NULL"
);
}
vas_f
*
VAS_Fail_Func
v_noreturn_
;
void
v_noreturn_
...
...
lib/libvarnish/verrno.c
deleted
100644 → 0
View file @
e6be754f
/*-
* Written by Nils Goroll based upon a draft by Poul-Henning Kamp
*
* This file is in the public domain.
*
* trivial strerror() wrapper never returning NULL
*/
#include "config.h"
#include <string.h>
#include "verrno.h"
const
char
*
vstrerror
(
int
e
)
{
const
char
*
p
;
int
oerrno
=
errno
;
p
=
strerror
(
e
);
if
(
p
!=
NULL
)
return
(
p
);
errno
=
oerrno
;
return
(
"strerror(3) returned NULL"
);
}
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