mirror of
https://github.com/haproxy/haproxy.git
synced 2026-06-29 11:16:51 -04:00
BUILD: log: silent a warning about isblank() with latest patches
Recent commit 06d97f9 (MEDIUM: log-format: relax parsing of '%' followed
by unsupported characters) caused the following warning on some compilers
since isblank is not always present :
src/log.c: In function 'parse_logformat_string':
src/log.c:453: warning: implicit declaration of function 'isblank'
As usual, replace it with the two values (space and tab).
This commit is contained in:
parent
60e0838f60
commit
9eba36b726
1 changed files with 1 additions and 1 deletions
|
|
@ -450,7 +450,7 @@ void parse_logformat_string(const char *fmt, struct proxy *curproxy, struct list
|
|||
}
|
||||
else if (*str == '%')
|
||||
cformat = LF_TEXT; // convert this character to a litteral (useful for '%')
|
||||
else if (isdigit(*str) || isblank(*str)) {
|
||||
else if (isdigit(*str) || *str == ' ' || *str == '\t') {
|
||||
/* single '%' followed by blank or digit, send them both */
|
||||
cformat = LF_TEXT;
|
||||
pformat = LF_TEXT; /* finally we include the previous char as well */
|
||||
|
|
|
|||
Loading…
Reference in a new issue