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:
a094fde
)
MINOR: buffers: remove b_putstr()
author
Willy Tarreau
<w@1wt.eu>
Thu, 12 Jul 2018 13:03:59 +0000
(15:03 +0200)
committer
Willy Tarreau
<w@1wt.eu>
Thu, 19 Jul 2018 14:23:43 +0000
(16:23 +0200)
It's not needed anymore.
include/common/buf.h
patch
|
blob
|
history
diff --git
a/include/common/buf.h
b/include/common/buf.h
index
a7bbb1f
..
1ad0052
100644
(file)
--- a/
include/common/buf.h
+++ b/
include/common/buf.h
@@
-484,15
+484,6
@@
static inline size_t b_putblk(struct buffer *b, const char *blk, size_t len)
return len;
}
-/* b_putstr() : tries to copy string <str> into output data at buffer <b>.
- * Supports wrapping. Data are truncated if buffer is too short. It returns the
- * number of bytes copied.
- */
-static inline size_t b_putstr(struct buffer *b, const char *str)
-{
- return b_putblk(b, str, strlen(str));
-}
-
#endif /* _COMMON_BUF_H */