search for: ce91ab3f

Displaying 2 results from an estimated 2 matches for "ce91ab3f".

2020 Apr 15
0
[PATCH nbdkit 2/9] floppy, iso, split, ssh: Use new vector type to store lists of strings.
...(struct handle *h, uint64_t offset) { return bsearch (&offset, h->files, - nr_files, sizeof (struct file), + filenames.size, sizeof (struct file), compare_offset); } diff --git a/plugins/ssh/ssh.c b/plugins/ssh/ssh.c index 1fd5f223..ce91ab3f 100644 --- a/plugins/ssh/ssh.c +++ b/plugins/ssh/ssh.c @@ -50,6 +50,9 @@ #include <nbdkit-plugin.h> #include "minmax.h" +#include "vector.h" + +DEFINE_VECTOR_TYPE(const_string_vector, const char *); static const char *host = NULL; static const char *path = NULL; @@...
2020 Apr 15
18
[PATCH nbdkit 0/9] Generic vector, and pass $nbdkit_stdio_safe to shell scripts.
This was a rather longer trip around the houses than I anticipated! The basic purpose of the patch series is to set $nbdkit_stdio_safe to "0" or "1" in sh and eval plugin scripts. To do that, I ended up adding a nicer way to manipulate environ lists, and to do that, I ended up adding a whole generic vector implementation which is applicable in a lot of different places.