projects
/
haproxy-3.0.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0c7ed5d
)
MINOR: buffer: make bo_putchar() use b_tail()
author
Willy Tarreau
<w@1wt.eu>
Mon, 9 Jul 2018 08:31:30 +0000
(10:31 +0200)
committer
Willy Tarreau
<w@1wt.eu>
Thu, 19 Jul 2018 14:23:41 +0000
(16:23 +0200)
It's possible because we can't call bo_putchar() with i != 0.
include/common/buffer.h
patch
|
blob
|
history
diff --git
a/include/common/buffer.h
b/include/common/buffer.h
index
a05d58d
..
976ea02
100644
(file)
--- a/
include/common/buffer.h
+++ b/
include/common/buffer.h
@@
-205,7
+205,7
@@
static inline void bo_putchr(struct buffer *b, char c)
{
if (b_data(b) == b->size)
return;
- *b->p = c;
+ *b_tail(b) = c;
b->p = b_peek(b, b->o + 1);
b->o++;
}