summaryrefslogtreecommitdiffstats
path: root/include/osmocom/core/loggingrb.h
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2019-04-11 07:16:02 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2019-04-11 07:40:25 +0200
commit8531d6695f7363e5fa24141c53253e699d99ca0a (patch)
tree0c89e7ee2c6dc6767ca512ec6537579fd1c9df22 /include/osmocom/core/loggingrb.h
parentd79ccc65f7134839a6d00f0eb70f43c2b614e9c8 (diff)
tweak OSMO_STRBUF_APPEND(), add OSMO_STRBUF_APPEND_NOLEN()
In OSMO_STRBUF_APPEND, use local variable names that are less likely to shadow other local variables: prefix with _sb_. In OSMO_STRBUF_APPEND, add a check to add to .pos only if it is not NULL. Add OSMO_STRBUF_APPEND_NOLEN(), which works for function signatures that don't return a length. This is useful for any osmo_*_buf() string writing functions, so that these write directly to the strbuf. Change-Id: I108cadf72deb3a3bcab9a07e50572d9da1ab0359
Diffstat (limited to 'include/osmocom/core/loggingrb.h')
0 files changed, 0 insertions, 0 deletions