projects
/
haproxy-2.5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92c696e
)
CLEANUP: Use IST_NULL whenever possible
author
Tim Duesterhus
<tim@bastelstu.be>
Sun, 28 Feb 2021 15:11:37 +0000
(16:11 +0100)
committer
Christopher Faulet
<cfaulet@haproxy.com>
Mon, 1 Mar 2021 14:44:28 +0000
(15:44 +0100)
Refactoring performed with the following Coccinelle patch:
@@
@@
- ist2(NULL, 0)
+ IST_NULL
src/http_fetch.c
patch
|
blob
|
history
diff --git
a/src/http_fetch.c
b/src/http_fetch.c
index
c73546b
..
3d627a9
100644
(file)
--- a/
src/http_fetch.c
+++ b/
src/http_fetch.c
@@
-818,7
+818,7
@@
static int smp_fetch_fhdr_cnt(const struct arg *args, struct sample *smp, const
if (args->type == ARGT_STR) {
name = ist2(args->data.str.area, args->data.str.data);
} else {
- name = ist2(NULL, 0);
+ name = IST_NULL;
}
ctx.blk = NULL;
@@
-954,7
+954,7
@@
static int smp_fetch_hdr_cnt(const struct arg *args, struct sample *smp, const c
if (args->type == ARGT_STR) {
name = ist2(args->data.str.area, args->data.str.data);
} else {
- name = ist2(NULL, 0);
+ name = IST_NULL;
}
ctx.blk = NULL;