diff options
author | David Timber <mieabby@gmail.com> | 2020-10-20 07:28:50 +1030 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2020-10-20 07:28:50 +1030 |
commit | 4c882d7216bb12d5821a108b9f11544a075c7024 (patch) | |
tree | 84fba1d9decbab537a2ddb1931ef89f219438274 /src/iobuf.c | |
parent | 5dbfcb1f66b681fbb6cdec8836efe2c2d84f957e (diff) |
Impl hostinfod and extras ...
* Use EOVERFLOW instead of E2BIG
* Add prne_iobuf_zero()
* Fix format check logic error in prne_htbt_ser_msg_head()
* Add prne_dup_str()
* Add prne_timespec_ms()
Diffstat (limited to 'src/iobuf.c')
-rw-r--r-- | src/iobuf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/iobuf.c b/src/iobuf.c index 38aa296..2b65ce7 100644 --- a/src/iobuf.c +++ b/src/iobuf.c @@ -81,3 +81,8 @@ void prne_iobuf_shift (prne_iobuf_t *ib, const ssize_t amount) { memmove(ib->m, ib->m + (-amount), ib->len); } } + +void prne_iobuf_zero (prne_iobuf_t *ib) { + prne_memzero(ib->m, ib->size); + prne_iobuf_reset(ib); +} |