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
e6d58182
Commit
e6d58182
authored
Dec 08, 2016
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
replace NEEDLESS_RETURN(x) with NEEDLESS(return(x))
parent
d49afc04
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
8 deletions
+6
-8
cache_fetch.c
bin/varnishd/cache/cache_fetch.c
+1
-1
vtc.c
bin/varnishtest/vtc.c
+2
-2
flint.lnt
flint.lnt
+1
-1
vdef.h
include/vdef.h
+0
-2
vsa.c
lib/libvarnish/vsa.c
+1
-1
shard_hash.c
lib/libvmod_directors/shard_hash.c
+1
-1
No files found.
bin/varnishd/cache/cache_fetch.c
View file @
e6d58182
...
...
@@ -926,7 +926,7 @@ static enum fetch_step
vbf_stp_done
(
void
)
{
WRONG
(
"Just plain wrong"
);
NEEDLESS
_RETURN
(
F_STP_DONE
);
NEEDLESS
(
return
(
F_STP_DONE
)
);
}
static
void
__match_proto__
(
task_func_t
)
...
...
bin/varnishtest/vtc.c
View file @
e6d58182
...
...
@@ -241,7 +241,7 @@ macro_expand(struct vtclog *vl, const char *text)
VSB_destroy
(
&
vsb
);
vtc_log
(
vl
,
0
,
"Macro ${%.*s} not found"
,
(
int
)(
q
-
p
),
p
);
NEEDLESS
_RETURN
(
NULL
);
NEEDLESS
(
return
(
NULL
)
);
}
VSB_printf
(
vsb
,
"%s"
,
m
);
free
(
m
);
...
...
@@ -381,7 +381,7 @@ parse_string(const char *spec, const struct cmds *cmd, void *priv,
break
;
if
(
cp
->
name
==
NULL
)
{
vtc_log
(
vl
,
0
,
"Unknown command:
\"
%s
\"
"
,
token_s
[
0
]);
NEEDLESS
_RETURN
;
NEEDLESS
(
return
)
;
}
assert
(
cp
->
cmd
!=
NULL
);
...
...
flint.lnt
View file @
e6d58182
...
...
@@ -95,7 +95,7 @@
///////////////////////////////////////////////////////////////////////
// <vdef.h>
-emacro(527, NEEDLESS
_RETURN
) // unreachable code
-emacro(527, NEEDLESS) // unreachable code
///////////////////////////////////////////////////////////////////////
...
...
include/vdef.h
View file @
e6d58182
...
...
@@ -112,11 +112,9 @@
#define __state_variable__(varname) varname
/*lint -esym(838,varname) */
#ifdef __SUNPRO_C
#define NEEDLESS_RETURN {}
#define NEEDLESS(s) {}
#define __unused
#else
#define NEEDLESS_RETURN return
#define NEEDLESS(s) s
#endif
...
...
lib/libvarnish/vsa.c
View file @
e6d58182
...
...
@@ -336,7 +336,7 @@ VSA_Compare_IP(const struct suckaddr *sua1, const struct suckaddr *sua2)
}
WRONG
(
"Just plain insane"
);
NEEDLESS
_RETURN
(
-
1
);
NEEDLESS
(
return
(
-
1
)
);
}
struct
suckaddr
*
...
...
lib/libvmod_directors/shard_hash.c
View file @
e6d58182
...
...
@@ -101,7 +101,7 @@ _shard_hash_invalid(VCL_STRING s)
{
(
void
)
s
;
WRONG
(
"invalid hash fp _ALG_E_ENVALID"
);
NEEDLESS
_RETURN
(
0
);
NEEDLESS
(
return
(
0
)
);
}
const
hash_func
shard_hash_f
[
_ALG_E_MAX
]
=
{
...
...
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