diff options
author | David Timber <mieabby@gmail.com> | 2020-01-11 18:03:47 +1100 |
---|---|---|
committer | David Timber <mieabby@gmail.com> | 2020-01-11 18:03:47 +1100 |
commit | 10512fc50e6184397206a41c157c09d9b02e9e1a (patch) | |
tree | 5f0779032edf0f0710400ae6c99b9a3f2977735d /src/proone-unpack.c | |
parent | 129e12d7685a6ea99fde514ad104a0368a19033d (diff) |
staged resolv_worker
* replaced RNG from `rnd` to `mbedtls_ctr_drbg`
* use of `uint_fastN_t` where appropriate
* heartbeat protocol draft
* improved worker scheduling mech
Diffstat (limited to 'src/proone-unpack.c')
-rw-r--r-- | src/proone-unpack.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/proone-unpack.c b/src/proone-unpack.c index d865bd4..295fedb 100644 --- a/src/proone-unpack.c +++ b/src/proone-unpack.c @@ -109,7 +109,7 @@ int main (const int argc, const char **args) { } for (i = 0; i < bin_archive.nb_binaries; i += 1) { - arch_str = prne_arch2str(bin_archive.arch_arr[i]); + arch_str = prne_arch_tostr(bin_archive.arch_arr[i]); if (arch_str == NULL) { fprintf(stderr, "** unrecognised arch!"); exit_code = 2; @@ -137,12 +137,12 @@ int main (const int argc, const char **args) { exit_code = 2; break; } - close(fd); + prne_close(fd); } } while (false); prne_free(path); - close(fd); + prne_close(fd); prne_free_unpack_bin_archive_result(&unpack_ret); prne_free_bin_archive(&bin_archive); |