diff options
author | David Timber <mieabby@gmail.com> | 2021-08-10 19:43:33 +1000 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2021-08-10 19:43:33 +1000 |
commit | bbd889f13f94d59a5b78f3c3bc93499d523b8264 (patch) | |
tree | f107ac94e0b926476d8a3d8cc8c1f61672c836af /src/util_rt.h | |
parent | c008231406e43f314a19a3d34c1218d06815dc8a (diff) |
Impl M2M binary update ...
* Use getopt in proone-bne
* Call pth_yield() where necessary
* htbt: truncate downloaded binary if actual size of data transfered is
less than alloc_len
* prne_rcb_param.self is not optional as proone-bne uses nybin
* Add --vercmp option for proone-bne to test M2M bin update
* Refactor proone-htbtclient
* Protocol change: prne_htbt_bin_meta.alloc_len is now size_t
* Add convenience functions: prne_realloc_str(), prne_redup_str()
Diffstat (limited to 'src/util_rt.h')
-rw-r--r-- | src/util_rt.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util_rt.h b/src/util_rt.h index cdc6d50..ea1c707 100644 --- a/src/util_rt.h +++ b/src/util_rt.h @@ -27,7 +27,9 @@ void *prne_malloc (const size_t se, const size_t cnt); void *prne_realloc (void *ptr, const size_t se, const size_t cnt); void *prne_calloc (const size_t se, const size_t cnt); char *prne_alloc_str (const size_t len); +char *prne_realloc_str (char *old, const size_t len); char *prne_dup_str (const char *str); +char *prne_redup_str (char *old, const char *str); void prne_free (void *ptr); size_t prne_getpagesize (void); |